java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.SparseTensor
public final class SparseTensor
extends com.google.flatbuffers.Table
-
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
addData
(com.google.flatbuffers.FlatBufferBuilder builder, int dataOffset) static void
addNonZeroLength
(com.google.flatbuffers.FlatBufferBuilder builder, long nonZeroLength) static void
addShape
(com.google.flatbuffers.FlatBufferBuilder builder, int shapeOffset) static void
addSparseIndex
(com.google.flatbuffers.FlatBufferBuilder builder, int sparseIndexOffset) static void
addSparseIndexType
(com.google.flatbuffers.FlatBufferBuilder builder, byte sparseIndexType) static void
addType
(com.google.flatbuffers.FlatBufferBuilder builder, int typeOffset) static void
addTypeType
(com.google.flatbuffers.FlatBufferBuilder builder, byte typeType) static int
createShapeVector
(com.google.flatbuffers.FlatBufferBuilder builder, int[] data) data()
The location and size of the tensor's datastatic int
endSparseTensor
(com.google.flatbuffers.FlatBufferBuilder builder) static void
finishSizePrefixedSparseTensorBuffer
(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static void
finishSparseTensorBuffer
(com.google.flatbuffers.FlatBufferBuilder builder, int offset) static SparseTensor
static SparseTensor
getRootAsSparseTensor
(ByteBuffer _bb, SparseTensor obj) long
The number of non-zero values in a sparse tensor.shape
(int j) The dimensions of the tensor, optionally named.int
com.google.flatbuffers.Table
sparseIndex
(com.google.flatbuffers.Table obj) Sparse tensor indexbyte
static void
startShapeVector
(com.google.flatbuffers.FlatBufferBuilder builder, int numElems) static void
startSparseTensor
(com.google.flatbuffers.FlatBufferBuilder builder) com.google.flatbuffers.Table
type
(com.google.flatbuffers.Table obj) The type of data contained in a value cell.byte
typeType()
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
-
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)
-