/** * Sets the type of the cells to encode or decode. * * @param schemaType Cell type (Avro (inline, class or validated), counter or raw bytes). * @return this CellSpec. */ public CellSpec setType(final SchemaType schemaType) { getOrCreateCellSchema().setType(schemaType); return this; }
/** * Sets the Avro schema storage. * * <p> For Avro-encoded cells only. </p> * * @param schemaStorage Avro schema storage to use (hash, UID or final). * @return this CellSpec. */ public CellSpec setSchemaStorage(final SchemaStorage schemaStorage) { getOrCreateCellSchema().setStorage(schemaStorage); Preconditions.checkState(isAvro()); return this; }