Class SparseTensor

java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.SparseTensor

public final class SparseTensor extends com.google.flatbuffers.Table
  • Constructor Details

    • SparseTensor

      public SparseTensor()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsSparseTensor

      public static SparseTensor getRootAsSparseTensor(ByteBuffer _bb)
    • getRootAsSparseTensor

      public static SparseTensor getRootAsSparseTensor(ByteBuffer _bb, SparseTensor obj)
    • __init

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

      public SparseTensor __assign(int _i, ByteBuffer _bb)
    • typeType

      public byte typeType()
    • type

      public com.google.flatbuffers.Table type(com.google.flatbuffers.Table obj)
      The type of data contained in a value cell. Currently only fixed-width value types are supported, no strings or nested types.
    • shape

      public TensorDim shape(int j)
      The dimensions of the tensor, optionally named.
    • shape

      public TensorDim shape(TensorDim obj, int j)
    • shapeLength

      public int shapeLength()
    • shapeVector

      public TensorDim.Vector shapeVector()
    • shapeVector

      public TensorDim.Vector shapeVector(TensorDim.Vector obj)
    • nonZeroLength

      public long nonZeroLength()
      The number of non-zero values in a sparse tensor.
    • sparseIndexType

      public byte sparseIndexType()
    • sparseIndex

      public com.google.flatbuffers.Table sparseIndex(com.google.flatbuffers.Table obj)
      Sparse tensor index
    • data

      public Buffer data()
      The location and size of the tensor's data
    • data

      public Buffer data(Buffer obj)
    • startSparseTensor

      public static void startSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder)
    • addTypeType

      public static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType)
    • addType

      public static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset)
    • addShape

      public static void addShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset)
    • createShapeVector

      public static int createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data)
    • startShapeVector

      public static void startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems)
    • addNonZeroLength

      public static void addNonZeroLength(com.google.flatbuffers.FlatBufferBuilder builder, long nonZeroLength)
    • addSparseIndexType

      public static void addSparseIndexType(com.google.flatbuffers.FlatBufferBuilder builder, byte sparseIndexType)
    • addSparseIndex

      public static void addSparseIndex(com.google.flatbuffers.FlatBufferBuilder builder, int sparseIndexOffset)
    • addData

      public static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset)
    • endSparseTensor

      public static int endSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder)
    • finishSparseTensorBuffer

      public static void finishSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)
    • finishSizePrefixedSparseTensorBuffer

      public static void finishSizePrefixedSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset)