Package org.apache.arrow.flatbuf
Class Decimal
java.lang.Object
com.google.flatbuffers.Table
org.apache.arrow.flatbuf.Decimal
public final class Decimal
extends com.google.flatbuffers.Table
Exact decimal value represented as an integer value in two's
complement. Currently only 128-bit (16-byte) and 256-bit (32-byte) integers
are used. The representation uses the endianness indicated
in the Schema.
-
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
addBitWidth
(com.google.flatbuffers.FlatBufferBuilder builder, int bitWidth) static void
addPrecision
(com.google.flatbuffers.FlatBufferBuilder builder, int precision) static void
addScale
(com.google.flatbuffers.FlatBufferBuilder builder, int scale) int
bitWidth()
Number of bits per value.static int
createDecimal
(com.google.flatbuffers.FlatBufferBuilder builder, int precision, int scale, int bitWidth) static int
endDecimal
(com.google.flatbuffers.FlatBufferBuilder builder) static Decimal
static Decimal
getRootAsDecimal
(ByteBuffer _bb, Decimal obj) int
Total number of decimal digitsint
scale()
Number of digits after the decimal point "."static void
startDecimal
(com.google.flatbuffers.FlatBufferBuilder builder) 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
-
Decimal
public Decimal()
-
-
Method Details
-
ValidateVersion
public static void ValidateVersion() -
getRootAsDecimal
-
getRootAsDecimal
-
__init
-
__assign
-
precision
public int precision()Total number of decimal digits -
scale
public int scale()Number of digits after the decimal point "." -
bitWidth
public int bitWidth()Number of bits per value. The only accepted widths are 128 and 256. We use bitWidth for consistency with Int::bitWidth. -
createDecimal
public static int createDecimal(com.google.flatbuffers.FlatBufferBuilder builder, int precision, int scale, int bitWidth) -
startDecimal
public static void startDecimal(com.google.flatbuffers.FlatBufferBuilder builder) -
addPrecision
public static void addPrecision(com.google.flatbuffers.FlatBufferBuilder builder, int precision) -
addScale
public static void addScale(com.google.flatbuffers.FlatBufferBuilder builder, int scale) -
addBitWidth
public static void addBitWidth(com.google.flatbuffers.FlatBufferBuilder builder, int bitWidth) -
endDecimal
public static int endDecimal(com.google.flatbuffers.FlatBufferBuilder builder)
-