/** * Creates a SpecificRecordBuilderBase for building records of the given type. * @param schema the schema associated with the record class. */ protected SpecificRecordBuilderBase(Schema schema) { super(schema, SpecificData.getForSchema(schema)); }
/** Construct given writer's and reader's schema. */ public SpecificDatumReader(Schema writer, Schema reader) { this(writer, reader, SpecificData.getForSchema(reader)); }
/** Construct where the writer's and reader's schemas are the same. */ public SpecificDatumReader(Schema schema) { this(schema, schema, SpecificData.getForSchema(schema)); }
public SpecificDatumWriter(Schema schema) { super(schema, SpecificData.getForSchema(schema)); }
/** * Creates a SpecificRecordBuilderBase by copying an existing record instance. * @param other the record instance to copy. */ protected SpecificRecordBuilderBase(T other) { super(other.getSchema(), SpecificData.getForSchema(other.getSchema())); } }