Package com.illumon.iris.db.v2.parquet
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>
-
Field Summary
Fields inherited from interface io.deephaven.util.codec.ObjectDecoder
VARIABLE_WIDTH_SENTINEL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(byte[] input, int offset, int length) byte[]
encode
(BigInteger input) int
int
int
getScale()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.util.codec.ObjectDecoder
checkWidth, decode
-
Constructor Details
-
BigIntegerParquetBytesCodec
-
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 interfaceio.deephaven.util.codec.ObjectCodec<BigInteger>
-
getPrecision
public int getPrecision()- Specified by:
getPrecision
in interfaceio.deephaven.util.codec.ObjectCodec<BigInteger>
-
getScale
public int getScale()- Specified by:
getScale
in interfaceio.deephaven.util.codec.ObjectCodec<BigInteger>
-
expectedObjectWidth
public int expectedObjectWidth()- Specified by:
expectedObjectWidth
in interfaceio.deephaven.util.codec.ObjectDecoder<BigInteger>
-
encode
- Specified by:
encode
in interfaceio.deephaven.util.codec.ObjectCodec<BigInteger>
-
decode
- Specified by:
decode
in interfaceio.deephaven.util.codec.ObjectDecoder<BigInteger>
-