Uses of Class
org.apache.avro.generic.GenericData
Packages that use 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
Methods in org.apache.avro with parameters of type GenericDataModifier and TypeMethodDescriptionstatic Resolver.ActionResolver.EnumAdjust.resolve(Schema w, Schema r, GenericData d) If writer and reader don't have same name, aResolver.ErrorAction.ErrorType.NAMES_DONT_MATCHis returned, otherwise an appropriateResolver.EnumAdjustis.static Resolver.ActionResolver.Promote.resolve(Schema w, Schema r, GenericData d) Return a promotion.static Resolver.ActionResolver.ReaderUnion.resolve(Schema w, Schema r, GenericData d, Map<Schema.SeenPair, Resolver.Action> seen) Returns aResolver.ReaderUnionaction for resolving w and r, or anResolver.ErrorActionif there is no branch in the reader that matches the writer.static Resolver.ActionResolver.resolve(Schema writer, Schema reader, GenericData data) Returns aResolver.Actiontree for resolving the writer schema writer and the reader schema reader.static Resolver.ActionResolver.WriterUnion.resolve(Schema writeSchema, Schema readSchema, GenericData data, Map<Schema.SeenPair, Resolver.Action> seen) Constructors in org.apache.avro with parameters of type GenericDataModifierConstructorDescriptionprotectedAction(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
Methods in org.apache.avro.data that return GenericDataConstructors in org.apache.avro.data with parameters of type GenericDataModifierConstructorDescriptionprotectedRecordBuilderBase(RecordBuilderBase<T> other, GenericData data) RecordBuilderBase copy constructor.protectedRecordBuilderBase(Schema schema, GenericData data) Creates a RecordBuilderBase for building records of the given type. -
Uses of GenericData in org.apache.avro.generic
Methods in org.apache.avro.generic that return GenericDataModifier and TypeMethodDescriptionstatic GenericDataGenericData.get()Return the singleton instance.GenericDatumReader.getData()Return theGenericDataimplementation.GenericDatumWriter.getData()Return theGenericDataimplementation.GenericData.setFastReaderEnabled(boolean flag) Constructors in org.apache.avro.generic with parameters of type GenericDataModifierConstructorDescriptionprotectedGenericDatumReader(Schema writer, Schema reader, GenericData data) protectedGenericDatumWriter(Schema root, GenericData data) -
Uses of GenericData in org.apache.avro.hadoop.file
Methods in org.apache.avro.hadoop.file that return GenericDataModifier and TypeMethodDescriptionSortedKeyValueFile.Reader.Options.getDataModel()Return the data model.SortedKeyValueFile.Writer.Options.getDataModel()Return the data model.Methods in org.apache.avro.hadoop.file with parameters of type GenericDataModifier 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
Methods in org.apache.avro.hadoop.io that return GenericDataModifier and TypeMethodDescriptionstatic GenericDataAvroSerialization.createDataModel(Configuration conf) Gets an instance of data model implementation, defaulting toReflectDataif not explicitly specified.Methods in org.apache.avro.hadoop.io that return types with arguments of type GenericDataModifier and TypeMethodDescriptionstatic Class<? extends GenericData> AvroSerialization.getDataModelClass(Configuration conf) Gets the data model class for de/serialization.Method parameters in org.apache.avro.hadoop.io with type arguments of type GenericDataModifier and TypeMethodDescriptionstatic voidAvroSerialization.setDataModelClass(Configuration conf, Class<? extends GenericData> modelClass) Sets the data model class for de/serialization. -
Uses of GenericData in org.apache.avro.io
Methods in org.apache.avro.io with parameters of type GenericDataModifier and TypeMethodDescriptionstatic booleanFastReaderBuilder.isSupportedData(GenericData data) Constructors in org.apache.avro.io with parameters of type GenericData -
Uses of GenericData in org.apache.avro.ipc.generic
Methods in org.apache.avro.ipc.generic that return GenericDataModifier and TypeMethodDescriptionGenericRequestor.getGenericData()GenericResponder.getGenericData()Constructors in org.apache.avro.ipc.generic with parameters of type GenericDataModifierConstructorDescriptionGenericRequestor(Protocol protocol, Transceiver transceiver, GenericData data) GenericResponder(Protocol local, GenericData data) -
Uses of GenericData in org.apache.avro.mapred
Methods in org.apache.avro.mapred that return GenericDataModifier and TypeMethodDescriptionstatic GenericDataAvroJob.createDataModel(Configuration conf) static GenericDataAvroJob.createInputDataModel(Configuration conf) static GenericDataAvroJob.createMapOutputDataModel(Configuration conf) Methods in org.apache.avro.mapred that return types with arguments of type GenericDataModifier and TypeMethodDescriptionstatic Class<? extends GenericData> AvroJob.getDataModelClass(Configuration conf) Return the job's data model implementation class.Method parameters in org.apache.avro.mapred with type arguments of type GenericDataModifier and TypeMethodDescriptionstatic voidAvroJob.setDataModelClass(JobConf job, Class<? extends GenericData> modelClass) Configure a job's data model implementation class. -
Uses of GenericData in org.apache.avro.mapreduce
Methods in org.apache.avro.mapreduce with parameters of type GenericDataModifier 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.Method parameters in org.apache.avro.mapreduce with type arguments of type GenericDataModifier and TypeMethodDescriptionstatic voidAvroJob.setDataModelClass(Job job, Class<? extends GenericData> modelClass) Sets the job data model class.Constructors in org.apache.avro.mapreduce with parameters of type GenericDataModifierConstructorDescriptionAvroKeyRecordWriter(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
Constructors in org.apache.avro.message with parameters of type GenericDataModifierConstructorDescriptionBinaryMessageDecoder(GenericData model, Schema readSchema) Creates a newBinaryMessageEncoderthat uses the givendata modelto construct datum instances described by theschema.BinaryMessageDecoder(GenericData model, Schema readSchema, SchemaStore resolver) Creates a newBinaryMessageEncoderthat uses the givendata modelto construct datum instances described by theschema.BinaryMessageEncoder(GenericData model, Schema schema) Creates a newBinaryMessageEncoderthat uses the givendata modelto deconstruct datum instances described by theschema.BinaryMessageEncoder(GenericData model, Schema schema, boolean shouldCopy) Creates a newBinaryMessageEncoderthat uses the givendata modelto deconstruct datum instances described by theschema.RawMessageDecoder(GenericData model, Schema schema) Creates a newRawMessageDecoderthat uses the givendata modelto construct datum instances described by theschema.RawMessageDecoder(GenericData model, Schema writeSchema, Schema readSchema) Creates a newRawMessageDecoderthat uses the givendata modelto construct datum instances described by thereadSchema.RawMessageEncoder(GenericData model, Schema schema) Creates a newRawMessageEncoderthat uses the givendata modelto deconstruct datum instances described by theschema.RawMessageEncoder(GenericData model, Schema schema, boolean shouldCopy) Creates a newRawMessageEncoderthat uses the givendata modelto deconstruct datum instances described by theschema. -
Uses of GenericData in org.apache.avro.protobuf
Subclasses of GenericData in org.apache.avro.protobufModifier and TypeClassDescriptionclassUtilities for serializing Protobuf data in Avro format. -
Uses of GenericData in org.apache.avro.reflect
Subclasses of GenericData in org.apache.avro.reflectModifier and TypeClassDescriptionclassUtilities to use existing Java classes and interfaces via reflection.static classReflectDataimplementation that permits null field values. -
Uses of GenericData in org.apache.avro.specific
Subclasses of GenericData in org.apache.avro.specificModifier and TypeClassDescriptionclassUtilities for generated Java classes and interfaces. -
Uses of GenericData in org.apache.avro.thrift
Subclasses of GenericData in org.apache.avro.thriftModifier and TypeClassDescriptionclassUtilities for serializing Thrift data in Avro format. -
Uses of GenericData in org.apache.avro.util
Constructors in org.apache.avro.util with parameters of type GenericDataModifierConstructorDescriptionRandomData(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
Methods in org.apache.trevni.avro with parameters of type GenericDataModifier and TypeMethodDescriptionAvroColumnReader.Params.setModel(GenericData model) Set data representation.Constructors in org.apache.trevni.avro with parameters of type GenericDataModifierConstructorDescriptionAvroColumnWriter(Schema s, ColumnFileMetaData meta, GenericData model)