java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.SparseTensor
public final class SparseTensor
extends com.google.flatbuffers.Table
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class com.google.flatbuffers.Tablebb, bb_pos
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
SparseTensorpublic SparseTensor()
 
- 
- 
Method Details- 
ValidateVersionpublic static void ValidateVersion()
- 
getRootAsSparseTensor
- 
getRootAsSparseTensor
- 
__init
- 
__assign
- 
typeTypepublic byte typeType()
- 
typepublic 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.
- 
shapeThe dimensions of the tensor, optionally named.
- 
shape
- 
shapeLengthpublic int shapeLength()
- 
shapeVector
- 
shapeVector
- 
nonZeroLengthpublic long nonZeroLength()The number of non-zero values in a sparse tensor.
- 
sparseIndexTypepublic byte sparseIndexType()
- 
sparseIndexpublic com.google.flatbuffers.Table sparseIndex(com.google.flatbuffers.Table obj) Sparse tensor index
- 
dataThe location and size of the tensor's data
- 
data
- 
startSparseTensorpublic static void startSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
addTypeTypepublic static void addTypeType(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) 
- 
addTypepublic static void addType(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) 
- 
addShapepublic static void addShape(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) 
- 
createShapeVectorpublic static int createShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) 
- 
startShapeVectorpublic static void startShapeVector(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) 
- 
addNonZeroLengthpublic static void addNonZeroLength(com.google.flatbuffers.FlatBufferBuilder builder, long nonZeroLength) 
- 
addSparseIndexTypepublic static void addSparseIndexType(com.google.flatbuffers.FlatBufferBuilder builder, byte sparseIndexType) 
- 
addSparseIndexpublic static void addSparseIndex(com.google.flatbuffers.FlatBufferBuilder builder, int sparseIndexOffset) 
- 
addDatapublic static void addData(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) 
- 
endSparseTensorpublic static int endSparseTensor(com.google.flatbuffers.FlatBufferBuilder builder) 
- 
finishSparseTensorBufferpublic static void finishSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) 
- 
finishSizePrefixedSparseTensorBufferpublic static void finishSizePrefixedSparseTensorBuffer(com.google.flatbuffers.FlatBufferBuilder builder, int offset) 
 
-