Class Schema

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
  • Constructor Details

    • Schema

      public Schema()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsSchema

      public static Schema getRootAsSchema(ByteBuffer _bb)
    • getRootAsSchema

      public static Schema getRootAsSchema(ByteBuffer _bb, Schema obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Schema __assign(int _i, ByteBuffer _bb)
    • 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

      public Field fields(int j)
    • fields

      public Field fields(Field obj, int j)
    • fieldsLength

      public int fieldsLength()
    • fieldsVector

      public Field.Vector fieldsVector()
    • fieldsVector

      public Field.Vector fieldsVector(Field.Vector obj)
    • customMetadata

      public KeyValue customMetadata(int j)
    • customMetadata

      public KeyValue customMetadata(KeyValue obj, int j)
    • customMetadataLength

      public int customMetadataLength()
    • customMetadataVector

      public KeyValue.Vector customMetadataVector()
    • customMetadataVector

      public KeyValue.Vector customMetadataVector(KeyValue.Vector obj)
    • 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

      public ByteBuffer featuresAsByteBuffer()
    • featuresInByteBuffer

      public ByteBuffer featuresInByteBuffer(ByteBuffer _bb)
    • 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)