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
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 voidaddBitWidth(com.google.flatbuffers.FlatBufferBuilder builder, int bitWidth) static voidaddPrecision(com.google.flatbuffers.FlatBufferBuilder builder, int precision) static voidaddScale(com.google.flatbuffers.FlatBufferBuilder builder, int scale) intbitWidth()Number of bits per value.static intcreateDecimal(com.google.flatbuffers.FlatBufferBuilder builder, int precision, int scale, int bitWidth) static intendDecimal(com.google.flatbuffers.FlatBufferBuilder builder) static Decimalstatic DecimalgetRootAsDecimal(ByteBuffer _bb, Decimal obj) intTotal number of decimal digitsintscale()Number of digits after the decimal point "."static voidstartDecimal(com.google.flatbuffers.FlatBufferBuilder builder) 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
-
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)
-