Package org.kiji.schema.avro

Examples of org.kiji.schema.avro.CellSchema


      final SchemaRegistrationType schemaRegistrationType)
      throws NoSuchColumnException, InvalidLayoutException {
    Preconditions.checkNotNull(columnName);
    Preconditions.checkNotNull(schemaRegistrationType);

    final CellSchema cellSchema = getColumnSchema(columnName);

    // Avoid tracking schemas final or non-AVRO cells.
    if ((SchemaType.AVRO != cellSchema.getType())
        || (SchemaStorage.FINAL == cellSchema.getStorage())) {
      throw new InvalidLayoutException("Final or non-AVRO column schema cannot be modified.");
    }

    final String fieldName = schemaRegistrationType.getCellSchemaFieldName();
    return (List<AvroSchema>) Preconditions.checkNotNull(cellSchema.get(fieldName));
  }
View Full Code Here


            mId = reference.getId();
            desc.setId(mId.getId());
          }

          // Force validation of schema:
          final CellSchema referenceSchema =
              (null != reference) ? reference.getDesc().getColumnSchema() : null;
          validateCellSchema(mLayoutVersion, mDesc.getColumnSchema(), referenceSchema);
        }
View Full Code Here

TOP

Related Classes of org.kiji.schema.avro.CellSchema

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.