java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.SparseTensor
public final class SparseTensor
extends com.google.flatbuffers.Table
-
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 voidaddData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) static voidaddNonZeroLength(com.google.flatbuffers.FlatBufferBuilder builder, long nonZeroLength) static voidaddShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) static voidaddSparseIndex(com.google.flatbuffers.FlatBufferBuilder builder, int sparseIndexOffset) static voidaddSparseIndexType(com.google.flatbuffers.FlatBufferBuilder builder, byte sparseIndexType) static voidaddType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) static voidaddTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) static intcreateShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) data()The location and size of the tensor's datastatic intendSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) static voidfinishSizePrefixedSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static voidfinishSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static SparseTensorstatic SparseTensorgetRootAsSparseTensor(ByteBuffer _bb, SparseTensor obj) longThe number of non-zero values in a sparse tensor.shape(int j) The dimensions of the tensor, optionally named.intcom.google.flatbuffers.TablesparseIndex(com.google.flatbuffers.Table obj) Sparse tensor indexbytestatic voidstartShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static voidstartSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) com.google.flatbuffers.Tabletype(com.google.flatbuffers.Table obj) The type of data contained in a value cell.bytetypeType()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
-
SparseTensor
public SparseTensor()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsSparseTensor
-
getRootAsSparseTensor
-
__init
-
__assign
-
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
The dimensions of the tensor, optionally named. -
shape
-
shapeLength
public int shapeLength() -
shapeVector
-
shapeVector
-
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
The location and size of the tensor's data -
data
-
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)
-