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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields inherited from class com.google.flatbuffers.Table

    bb, bb_pos
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    __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
    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
     
    int
    Total number of decimal digits
    int
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Decimal

      public Decimal()
  • Method Details

    • ValidateVersion

      public static void ValidateVersion()
    • getRootAsDecimal

      public static Decimal getRootAsDecimal(ByteBuffer _bb)
    • getRootAsDecimal

      public static Decimal getRootAsDecimal(ByteBuffer _bb, Decimal obj)
    • __init

      public void __init(int _i, ByteBuffer _bb)
    • __assign

      public Decimal __assign(int _i, ByteBuffer _bb)
    • 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)