Interface ValueReader
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
FixedByteValueReaderWriter,VarLengthValueReader
public interface ValueReader extends Closeable
Interface for value readers, which read a value at a given index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BigDecimalgetBigDecimal(int index, int numBytesPerValue)byte[]getBytes(int index, int numBytesPerValue)NOTE: Do not reuse buffer for BYTES because the return value can have variable length.doublegetDouble(int index)floatgetFloat(int index)intgetInt(int index)longgetLong(int index)StringgetPaddedString(int index, int numBytesPerValue, byte[] buffer)NOTE: The passed in reusable buffer should have capacity of at leastnumBytesPerValue.StringgetUnpaddedString(int index, int numBytesPerValue, byte paddingByte, byte[] buffer)NOTE: The passed in reusable buffer should have capacity of at leastnumBytesPerValue.
-
-
-
Method Detail
-
getInt
int getInt(int index)
-
getLong
long getLong(int index)
-
getFloat
float getFloat(int index)
-
getDouble
double getDouble(int index)
-
getBigDecimal
default BigDecimal getBigDecimal(int index, int numBytesPerValue)
-
getUnpaddedString
String getUnpaddedString(int index, int numBytesPerValue, byte paddingByte, byte[] buffer)
NOTE: The passed in reusable buffer should have capacity of at leastnumBytesPerValue.
-
getPaddedString
String getPaddedString(int index, int numBytesPerValue, byte[] buffer)
NOTE: The passed in reusable buffer should have capacity of at leastnumBytesPerValue.
-
getBytes
byte[] getBytes(int index, int numBytesPerValue)NOTE: Do not reuse buffer for BYTES because the return value can have variable length.
-
-