java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Schema
public final class Schema
extends com.google.flatbuffers.Table
----------------------------------------------------------------------
A Schema describes the columns in a row batch
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__assign(int _i, ByteBuffer _bb) void__init(int _i, ByteBuffer _bb) static voidaddCustomMetadata(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) static voidaddEndianness(com.google.flatbuffers.FlatBufferBuilder builder, short endianness) static voidaddFeatures(com.google.flatbuffers.FlatBufferBuilder builder, int featuresOffset) static voidaddFields(com.google.flatbuffers.FlatBufferBuilder builder, int fieldsOffset) static intcreateCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateFeaturesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) static intcreateFieldsVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static intcreateSchema(com.google.flatbuffers.FlatBufferBuilder builder, short endianness, int fieldsOffset, int customMetadataOffset, int featuresOffset) customMetadata(int j) customMetadata(KeyValue obj, int j) intshortendianness of the buffer it is Little Endian by default if endianness doesn't match the underlying system then the vectors need to be convertedstatic intendSchema(com.google.flatbuffers.FlatBufferBuilder builder) longfeatures(int j) Features used in the stream/file.intcom.google.flatbuffers.LongVectorcom.google.flatbuffers.LongVectorfeaturesVector(com.google.flatbuffers.LongVector obj) fields(int j) intfieldsVector(Field.Vector obj) static voidfinishSchemaBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static voidfinishSizePrefixedSchemaBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static Schemastatic SchemagetRootAsSchema(ByteBuffer _bb, Schema obj) static voidstartCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartFeaturesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartFieldsVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartSchema(com.google.flatbuffers.FlatBufferBuilder builder) static voidMethods inherited from class com.google.flatbuffers.Table
__has_identifier, __indirect, __indirect, __offset, __offset, __reset, __reset, __string, __string, __union, __union, __vector, __vector_as_bytebuffer, __vector_in_bytebuffer, __vector_len, compareStrings, compareStrings, getByteBuffer, keysCompare, sortTables
-
Constructor Details
-
Schema
public Schema()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsSchema
-
getRootAsSchema
-
__init
-
__assign
-
endianness
public short endianness()endianness of the buffer it is Little Endian by default if endianness doesn't match the underlying system then the vectors need to be converted -
fields
-
fields
-
fieldsLength
public int fieldsLength() -
fieldsVector
-
fieldsVector
-
customMetadata
-
customMetadata
-
customMetadataLength
public int customMetadataLength() -
customMetadataVector
-
customMetadataVector
-
features
public long features(int j) Features used in the stream/file. -
featuresLength
public int featuresLength() -
featuresVector
public com.google.flatbuffers.LongVector featuresVector() -
featuresVector
public com.google.flatbuffers.LongVector featuresVector(com.google.flatbuffers.LongVector obj) -
featuresAsByteBuffer
-
featuresInByteBuffer
-
createSchema
public static int createSchema(com.google.flatbuffers.FlatBufferBuilder builder, short endianness, int fieldsOffset, int customMetadataOffset, int featuresOffset) -
startSchema
public static void startSchema(com.google.flatbuffers.FlatBufferBuilder builder) -
addEndianness
public static void addEndianness(com.google.flatbuffers.FlatBufferBuilder builder, short endianness) -
addFields
public static void addFields(com.google.flatbuffers.FlatBufferBuilder builder, int fieldsOffset) -
createFieldsVector
public static int createFieldsVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) -
startFieldsVector
public static void startFieldsVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
addCustomMetadata
public static void addCustomMetadata(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) -
createCustomMetadataVector
public static int createCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) -
startCustomMetadataVector
public static void startCustomMetadataVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
addFeatures
public static void addFeatures(com.google.flatbuffers.FlatBufferBuilder builder, int featuresOffset) -
createFeaturesVector
public static int createFeaturesVector(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) -
startFeaturesVector
public static void startFeaturesVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) -
endSchema
public static int endSchema(com.google.flatbuffers.FlatBufferBuilder builder) -
finishSchemaBuffer
public static void finishSchemaBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) -
finishSizePrefixedSchemaBuffer
public static void finishSizePrefixedSchemaBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
-