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
-
Field Summary
Fields inherited from class com.google.flatbuffers.Table
bb, bb_pos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__assign
(int _i, ByteBuffer _bb) void
__init
(int _i, ByteBuffer _bb) static void
addCustomMetadata
(com.google.flatbuffers.FlatBufferBuilder builder, int customMetadataOffset) static void
addEndianness
(com.google.flatbuffers.FlatBufferBuilder builder, short endianness) static void
addFeatures
(com.google.flatbuffers.FlatBufferBuilder builder, int featuresOffset) static void
addFields
(com.google.flatbuffers.FlatBufferBuilder builder, int fieldsOffset) static int
createCustomMetadataVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static int
createFeaturesVector
(com.google.flatbuffers.FlatBufferBuilder builder, long[] data) static int
createFieldsVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) static int
createSchema
(com.google.flatbuffers.FlatBufferBuilder builder, short endianness, int fieldsOffset, int customMetadataOffset, int featuresOffset) customMetadata
(int j) customMetadata
(KeyValue obj, int j) int
short
endianness of the buffer it is Little Endian by default if endianness doesn't match the underlying system then the vectors need to be convertedstatic int
endSchema
(com.google.flatbuffers.FlatBufferBuilder builder) long
features
(int j) Features used in the stream/file.int
com.google.flatbuffers.LongVector
com.google.flatbuffers.LongVector
featuresVector
(com.google.flatbuffers.LongVector obj) fields
(int j) int
fieldsVector
(Field.Vector obj) static void
finishSchemaBuffer
(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static void
finishSizePrefixedSchemaBuffer
(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static Schema
static Schema
getRootAsSchema
(ByteBuffer _bb, Schema obj) static void
startCustomMetadataVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startFeaturesVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startFieldsVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startSchema
(com.google.flatbuffers.FlatBufferBuilder builder) static void
Methods 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)
-