Uses of Class
org.apache.avro.generic.GenericData
Package
Description
Avro kernel classes.
Interfaces and base classes shared by generic, specific and reflect.
A generic representation for Avro data.
Utilities for Encoding and Decoding Avro data.
Run Hadoop MapReduce jobs over
Avro data, with map and reduce functions written in Java.
Protocol Buffer
compatibility.
Use Java reflection to generate schemas and protocols for existing
classes.
Generate specific Java classes for schemas and protocols.
Thrift compatibility.
Common utility classes.
Read and write Avro data
in Trevni column files.
-
Uses of GenericData in org.apache.avro
Modifier and TypeMethodDescriptionstatic Resolver.Action
Resolver.EnumAdjust.resolve
(Schema w, Schema r, GenericData d) If writer and reader don't have same name, aResolver.ErrorAction.ErrorType.NAMES_DONT_MATCH
is returned, otherwise an appropriateResolver.EnumAdjust
is.static Resolver.Action
Resolver.Promote.resolve
(Schema w, Schema r, GenericData d) Return a promotion.static Resolver.Action
Resolver.ReaderUnion.resolve
(Schema w, Schema r, GenericData d, Map<Schema.SeenPair, Resolver.Action> seen) Returns aResolver.ReaderUnion
action for resolving w and r, or anResolver.ErrorAction
if there is no branch in the reader that matches the writer.static Resolver.Action
Resolver.resolve
(Schema writer, Schema reader, GenericData data) Returns aResolver.Action
tree for resolving the writer schema writer and the reader schema reader.static Resolver.Action
Resolver.WriterUnion.resolve
(Schema writeSchema, Schema readSchema, GenericData data, Map<Schema.SeenPair, Resolver.Action> seen) ModifierConstructorDescriptionprotected
Action
(Schema w, Schema r, GenericData data, Resolver.Action.Type t) Container
(Schema w, Schema r, GenericData d, Resolver.Action e) DoNothing
(Schema w, Schema r, GenericData d) ErrorAction
(Schema w, Schema r, GenericData d, Resolver.ErrorAction.ErrorType e) ReaderUnion
(Schema w, Schema r, GenericData d, int firstMatch, Resolver.Action actual) Skip
(Schema w, GenericData d) -
Uses of GenericData in org.apache.avro.data
ModifierConstructorDescriptionprotected
RecordBuilderBase
(RecordBuilderBase<T> other, GenericData data) RecordBuilderBase copy constructor.protected
RecordBuilderBase
(Schema schema, GenericData data) Creates a RecordBuilderBase for building records of the given type. -
Uses of GenericData in org.apache.avro.generic
Modifier and TypeMethodDescriptionstatic GenericData
GenericData.get()
Return the singleton instance.GenericDatumReader.getData()
Return theGenericData
implementation.GenericDatumWriter.getData()
Return theGenericData
implementation.GenericData.setFastReaderEnabled
(boolean flag) ModifierConstructorDescriptionprotected
GenericDatumReader
(Schema writer, Schema reader, GenericData data) protected
GenericDatumWriter
(Schema root, GenericData data) -
Uses of GenericData in org.apache.avro.hadoop.file
Modifier and TypeMethodDescriptionSortedKeyValueFile.Reader.Options.getDataModel()
Return the data model.SortedKeyValueFile.Writer.Options.getDataModel()
Return the data model.Modifier and TypeMethodDescriptionSortedKeyValueFile.Reader.Options.withDataModel
(GenericData model) Set the data model.SortedKeyValueFile.Writer.Options.withDataModel
(GenericData model) Set the data model. -
Uses of GenericData in org.apache.avro.hadoop.io
Modifier and TypeMethodDescriptionstatic GenericData
AvroSerialization.createDataModel
(Configuration conf) Gets an instance of data model implementation, defaulting toReflectData
if not explicitly specified.Modifier and TypeMethodDescriptionstatic Class
<? extends GenericData> AvroSerialization.getDataModelClass
(Configuration conf) Gets the data model class for de/serialization.Modifier and TypeMethodDescriptionstatic void
AvroSerialization.setDataModelClass
(Configuration conf, Class<? extends GenericData> modelClass) Sets the data model class for de/serialization. -
Uses of GenericData in org.apache.avro.io
Modifier and TypeMethodDescriptionstatic boolean
FastReaderBuilder.isSupportedData
(GenericData data) -
Uses of GenericData in org.apache.avro.ipc.generic
Modifier and TypeMethodDescriptionGenericRequestor.getGenericData()
GenericResponder.getGenericData()
ModifierConstructorDescriptionGenericRequestor
(Protocol protocol, Transceiver transceiver, GenericData data) GenericResponder
(Protocol local, GenericData data) -
Uses of GenericData in org.apache.avro.mapred
Modifier and TypeMethodDescriptionstatic GenericData
AvroJob.createDataModel
(Configuration conf) static GenericData
AvroJob.createInputDataModel
(Configuration conf) static GenericData
AvroJob.createMapOutputDataModel
(Configuration conf) Modifier and TypeMethodDescriptionstatic Class
<? extends GenericData> AvroJob.getDataModelClass
(Configuration conf) Return the job's data model implementation class.Modifier and TypeMethodDescriptionstatic void
AvroJob.setDataModelClass
(JobConf job, Class<? extends GenericData> modelClass) Configure a job's data model implementation class. -
Uses of GenericData in org.apache.avro.mapreduce
Modifier and TypeMethodDescriptionprotected RecordWriter
<AvroKey<T>, NullWritable> AvroKeyOutputFormat.RecordWriterFactory.create
(Schema writerSchema, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream, int syncInterval) Creates a new record writer instance.Modifier and TypeMethodDescriptionstatic void
AvroJob.setDataModelClass
(Job job, Class<? extends GenericData> modelClass) Sets the job data model class.ModifierConstructorDescriptionAvroKeyRecordWriter
(Schema writerSchema, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream) Constructor.AvroKeyRecordWriter
(Schema writerSchema, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream, int syncInterval) Constructor.AvroKeyValueRecordWriter
(AvroDatumConverter<K, ?> keyConverter, AvroDatumConverter<V, ?> valueConverter, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream) Constructor.AvroKeyValueRecordWriter
(AvroDatumConverter<K, ?> keyConverter, AvroDatumConverter<V, ?> valueConverter, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream, int syncInterval) Constructor. -
Uses of GenericData in org.apache.avro.message
ModifierConstructorDescriptionBinaryMessageDecoder
(GenericData model, Schema readSchema) Creates a newBinaryMessageEncoder
that uses the givendata model
to construct datum instances described by theschema
.BinaryMessageDecoder
(GenericData model, Schema readSchema, SchemaStore resolver) Creates a newBinaryMessageEncoder
that uses the givendata model
to construct datum instances described by theschema
.BinaryMessageEncoder
(GenericData model, Schema schema) Creates a newBinaryMessageEncoder
that uses the givendata model
to deconstruct datum instances described by theschema
.BinaryMessageEncoder
(GenericData model, Schema schema, boolean shouldCopy) Creates a newBinaryMessageEncoder
that uses the givendata model
to deconstruct datum instances described by theschema
.RawMessageDecoder
(GenericData model, Schema schema) Creates a newRawMessageDecoder
that uses the givendata model
to construct datum instances described by theschema
.RawMessageDecoder
(GenericData model, Schema writeSchema, Schema readSchema) Creates a newRawMessageDecoder
that uses the givendata model
to construct datum instances described by thereadSchema
.RawMessageEncoder
(GenericData model, Schema schema) Creates a newRawMessageEncoder
that uses the givendata model
to deconstruct datum instances described by theschema
.RawMessageEncoder
(GenericData model, Schema schema, boolean shouldCopy) Creates a newRawMessageEncoder
that uses the givendata model
to deconstruct datum instances described by theschema
. -
Uses of GenericData in org.apache.avro.protobuf
Modifier and TypeClassDescriptionclass
Utilities for serializing Protobuf data in Avro format. -
Uses of GenericData in org.apache.avro.reflect
Modifier and TypeClassDescriptionclass
Utilities to use existing Java classes and interfaces via reflection.static class
ReflectData
implementation that permits null field values. -
Uses of GenericData in org.apache.avro.specific
Modifier and TypeClassDescriptionclass
Utilities for generated Java classes and interfaces. -
Uses of GenericData in org.apache.avro.thrift
Modifier and TypeClassDescriptionclass
Utilities for serializing Thrift data in Avro format. -
Uses of GenericData in org.apache.avro.util
ModifierConstructorDescriptionRandomData
(GenericData genericData, Schema schema, int count) RandomData
(GenericData genericData, Schema schema, int count, boolean utf8ForString) RandomData
(GenericData genericData, Schema schema, int count, long seed) RandomData
(GenericData genericData, Schema schema, int count, long seed, boolean utf8ForString) -
Uses of GenericData in org.apache.trevni.avro
Modifier and TypeMethodDescriptionAvroColumnReader.Params.setModel
(GenericData model) Set data representation.ModifierConstructorDescriptionAvroColumnWriter
(Schema s, ColumnFileMetaData meta, GenericData model)