Class BigIntegerParquetBytesCodec

java.lang.Object
com.illumon.iris.db.v2.parquet.BigIntegerParquetBytesCodec
All Implemented Interfaces:
io.deephaven.util.codec.ObjectCodec<BigInteger>, io.deephaven.util.codec.ObjectDecoder<BigInteger>

public class BigIntegerParquetBytesCodec extends Object implements io.deephaven.util.codec.ObjectCodec<BigInteger>
  • Constructor Details

    • BigIntegerParquetBytesCodec

      public BigIntegerParquetBytesCodec(String args)
    • BigIntegerParquetBytesCodec

      public BigIntegerParquetBytesCodec(int encodedSizeInBytes)
      Parameters:
      encodedSizeInBytes - encoded size in bytes, if fixed size, or -1 if variable size. note that according to the parquet spec, the minimum number of bytes required to represent the unscaled value should be used for a variable sized (binary) encoding; in any case, the maximum encoded bytes is implicitly limited by precision.
  • Method Details

    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface io.deephaven.util.codec.ObjectCodec<BigInteger>
    • getPrecision

      public int getPrecision()
      Specified by:
      getPrecision in interface io.deephaven.util.codec.ObjectCodec<BigInteger>
    • getScale

      public int getScale()
      Specified by:
      getScale in interface io.deephaven.util.codec.ObjectCodec<BigInteger>
    • expectedObjectWidth

      public int expectedObjectWidth()
      Specified by:
      expectedObjectWidth in interface io.deephaven.util.codec.ObjectDecoder<BigInteger>
    • encode

      @NotNull public byte[] encode(@Nullable BigInteger input)
      Specified by:
      encode in interface io.deephaven.util.codec.ObjectCodec<BigInteger>
    • decode

      @Nullable public BigInteger decode(@NotNull byte[] input, int offset, int length)
      Specified by:
      decode in interface io.deephaven.util.codec.ObjectDecoder<BigInteger>