Package org.kiji.schema

Examples of org.kiji.schema.KijiColumnName


  ) throws IOException {
    requireState(State.OPEN, "remove annotation");
    final Map<KijiColumnName, Set<String>> removedAnnotationKeys = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column && Objects.equal(family, column.getFamily())) {
          final Set<String> removedKeysInColumn = removedAnnotationKeys.get(column);
          if (null != removedKeysInColumn) {
            removedKeysInColumn.add(keyFromMetaTableKey(metaTableKey));
          } else {
            removedAnnotationKeys.put(column, Sets.newHashSet(keyFromMetaTableKey(metaTableKey)));
View Full Code Here


  public Map<KijiColumnName, Set<String>> removeAllColumnAnnotations() throws IOException {
    requireState(State.OPEN, "remove annotation");
    final Map<KijiColumnName, Set<String>> removedAnnotationKeys = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column) {
          final Set<String> removedKeysInColumn = removedAnnotationKeys.get(column);
          if (null != removedKeysInColumn) {
            removedKeysInColumn.add(keyFromMetaTableKey(metaTableKey));
          } else {
View Full Code Here

  ) throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, String> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column
            && Objects.equal(family, column.getFamily())
            && Objects.equal(exactKey, keyFromMetaTableKey(metaTableKey))) {
          collectedAnnotations.put(column, getKV(metaTableKey));
        }
      }
    }
View Full Code Here

  ) throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column =
            columnFromMetaTableKey(metaTableKey);
        if (Objects.equal(family, column.getFamily())) {
          final String annotationKey = keyFromMetaTableKey(metaTableKey);
          if (annotationKey.startsWith(prefix)) {
            final Map<String, String> existingAnnotations = collectedAnnotations.get(column);
            if (null != existingAnnotations) {
              existingAnnotations.put(annotationKey, getKV(metaTableKey));
View Full Code Here

  ) throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column && Objects.equal(family, column.getFamily())) {
          final String annotationKey = keyFromMetaTableKey(metaTableKey);
          if (annotationKey.contains(substring)) {
            final Map<String, String> existingAnnotations = collectedAnnotations.get(column);
            if (null != existingAnnotations) {
              existingAnnotations.put(annotationKey, getKV(metaTableKey));
View Full Code Here

  ) throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column && Objects.equal(family, column.getFamily())) {
          final String annotationKey = keyFromMetaTableKey(metaTableKey);
          if (annotationKey.matches(pattern)) {
            final Map<String, String> existingAnnotations = collectedAnnotations.get(column);
            if (null != existingAnnotations) {
              existingAnnotations.put(annotationKey, getKV(metaTableKey));
View Full Code Here

  ) throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column && Objects.equal(family, column.getFamily())) {
          final String annotationKey = keyFromMetaTableKey(metaTableKey);
          final Map<String, String> existingAnnotations = collectedAnnotations.get(column);
          if (null != existingAnnotations) {
            existingAnnotations.put(annotationKey, getKV(metaTableKey));
          } else {
View Full Code Here

  public Map<KijiColumnName, Map<String, String>> getAllColumnAnnotations() throws IOException {
    requireState(State.OPEN, "get annotation");
    final Map<KijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap();
    for (String metaTableKey : keySet()) {
      if (isKCAColumnMetaTableKey(metaTableKey)) {
        final KijiColumnName column = columnFromMetaTableKey(metaTableKey);
        if (null != column) {
          final String annotationKey = keyFromMetaTableKey(metaTableKey);
          final Map<String, String> existingAnnotations = collectedAnnotations.get(column);
          if (null != existingAnnotations) {
            existingAnnotations.put(annotationKey, getKV(metaTableKey));
View Full Code Here

    final KijiTable table = kiji.openTable("table");
    try {
      final EntityId eid = table.getEntityId("row");

      final KijiTableLayout layout = table.getLayout();
      final KijiColumnName column = KijiColumnName.create("family", "column");
      final Map<KijiColumnName, CellSpec> overrides =
          ImmutableMap.<KijiColumnName, CellSpec>builder()
          .put(column, layout.getCellSpec(column)
              .setCellSchema(CellSchema.newBuilder()
                  .setType(SchemaType.INLINE)
View Full Code Here

        "checkAndCommit() must be paired with a call to begin()");
    final State state = mState.get();
    Preconditions.checkState(state == State.OPEN,
        "Cannot checkAndCommit a transaction on an AtomicKijiPutter instance in state %s.", state);
    final WriterLayoutCapsule capsule = getWriterLayoutCapsule();
    final KijiColumnName kijiColumnName = KijiColumnName.create(family, qualifier);
    final HBaseColumnName columnName =
        capsule.getColumnNameTranslator().toHBaseColumnName(kijiColumnName);
    final byte[] encoded;

    // If passed value is null, then let encoded value be null.
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiColumnName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.