GenericRecordBuilder for a
convenient way to build GenericRecord instances.
GenericRecordBuilder
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | GenericData.EnumSymbol
Default implementation of |
| public static class | GenericData.Fixed
Default implementation of |
| public static interface | |
| public static class | GenericData.Record
Default implementation of |
| public static enum | GenericData.StringType
Used to specify the Java type for a string schema. |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoader | |
| private Map | |
| private Map | |
| private final ConcurrentMap | |
| public static final String | |
| private FastReaderBuilder | |
| private boolean | |
| private static final GenericData | |
| private static final Map | |
| public static final String | |
| protected static final String | |
| private static final Schema | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addLogicalTypeConversion(Conversion<?>
a logical type Conversion. conversion)Registers the given conversion to be used when reading and writing with this data model. |
| public int | |
| protected int | |
| protected int | |
| public DatumReader | |
| public DatumReader | |
| public DatumWriter | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public <T> T | |
| private Object | |
| public static GenericData | |
| protected Collection | |
| public ClassLoader | |
| public <T> Conversion | Returns: the first registered conversion for the class, or nulla Class datumClass)Returns the first conversion found for the given class. |
| public <T> Conversion | Returns: the conversion for the class and logical type, or nulla Class datumClass, LogicalType a LogicalType logicalType)Returns the conversion for the given class and logical type. |
| public <T> Conversion | Returns: the conversion for the logical type, or nulla logical type logicalType)Returns the Conversion for the given logical type. |
| public Collection | |
| public Object | Returns: the default value associated with the given field, or null if none is specified in the schema.the field whose default value should be retrieved. fieldGets the default value of the given field, if any. |
| protected Schema | |
| public FastReaderBuilder | |
| public Object | getField(Object record, String name, int position)
Called by |
| protected Object | |
| protected Schema | |
| public GenericData. | getNewRecordSupplier(Schema schema)
create a supplier that allows to get new record instances for a given schema in an optimized way |
| protected Map | |
| protected Schema | |
| protected Object | getRecordState(Object record, Schema schema)
Produce state for repeated calls to
|
| protected String | |
| public int | hashCode(Object o, Schema s)
Compute a hash code according to a schema, consistent with
|
| protected int | hashCodeAdd(int hashCode, Object o, Schema s)
Add the hash code for an object into an accumulated hash code. |
| public Schema | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| public boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| protected boolean | |
| private boolean | |
| private void | |
| public Object | |
| public Object | |
| public Object | |
| public int | |
| public GenericData | |
| public void | setField(Object record, String name, int position, Object value)
Called by |
| protected void | |
| public static void | setStringType(Schema s, GenericData.
Set the Java type to be used when reading this schema. |
| public String | |
| protected void | toString(Object datum, StringBuilder buffer, IdentityHashMap<Object, Object> seenObjects)
Renders a Java datum as JSON. |
| public boolean | |
| private static void |