Uses of Enum
org.apache.avro.Schema.Type
Packages that use Schema.Type
Package
Description
Avro kernel classes.
A generic representation for Avro data.
-
Uses of Schema.Type in org.apache.avro
Methods in org.apache.avro that return Schema.TypeModifier and TypeMethodDescriptionSchema.getType()Return the type of this schema.static Schema.TypeReturns the enum constant of this type with the specified name.static Schema.Type[]Schema.Type.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.avro with parameters of type Schema.TypeModifier and TypeMethodDescriptionstatic SchemaSchema.create(Schema.Type type) Create a schema for a primitive type. -
Uses of Schema.Type in org.apache.avro.generic
Methods in org.apache.avro.generic that return Schema.TypeModifier and TypeMethodDescriptionstatic Schema.TypeGenericData.optimalValueType(Schema schema, LogicalType logicalType, Class<?> convertedElementType) Determine the optimal value type for an array.PrimitivesArrays.BooleanArray.valueType()PrimitivesArrays.DoubleArray.valueType()PrimitivesArrays.FloatArray.valueType()PrimitivesArrays.IntArray.valueType()PrimitivesArrays.LongArray.valueType()abstract Schema.TypePrimitivesArrays.PrimitiveArray.valueType()Methods in org.apache.avro.generic with parameters of type Schema.TypeModifier and TypeMethodDescriptionstatic GenericData.AbstractArray<?> PrimitivesArrays.createOptimizedArray(int size, Schema schema, Schema.Type valueType) Create a primitive array if the value type is has an associated optimised implementation, otherwise a generic array is returned.