private static class CalculatedColumnUtil.CalcNumericColImpl extends NumericColumnImpl
ColumnImpl.AutoNumberGenerator, ColumnImpl.InitArgs, ColumnImpl.SortOrderAUTO_NUMBER_FLAG_MASK, AUTO_NUMBER_GUID_FLAG_MASK, COMPRESSED_UNICODE_EXT_FLAG_MASK, FIXED_LEN_FLAG_MASK, GENERAL_LEGACY_SORT_ORDER, GENERAL_SORT_ORDER, HYPERLINK_FLAG_MASK, INVALID_AUTO_NUMBER, LOG, MILLIS_BETWEEN_EPOCH_AND_1900, NUMERIC_NEGATIVE_BYTE, RETURN_ROW_ID, UNKNOWN_FLAG_MASKAUTO_NUMBER, KEEP_VALUE| Constructor and Description |
|---|
CalcNumericColImpl(ColumnImpl.InitArgs args) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
fixNumericByteOrder(byte[] bytes) |
byte |
getPrecision() |
java.lang.Object |
read(byte[] data,
java.nio.ByteOrder order)
Deserialize a raw byte value for this column into an Object
|
private static java.math.BigDecimal |
readCalcNumericValue(java.nio.ByteBuffer buffer) |
private static int |
toMul4(int val) |
private void |
writeCalcNumericValue(java.nio.ByteBuffer buffer,
java.lang.Object value,
int dataLen) |
protected java.nio.ByteBuffer |
writeRealData(java.lang.Object obj,
int remainingRowLength,
java.nio.ByteOrder order) |
getScalebooleanToInteger, compareTo, countVariableLength, create, decodeTextValue, decodeUncompressedText, encodeTextValue, encodeUncompressedText, fromDateDouble, fromLocalDateDouble, getAutoNumberGenerator, getCalendar, getCharset, getColumnIndex, getColumnNumber, getColumnValidator, getComplexInfo, getDatabase, getDisplayIndex, getFixedDataOffset, getFormat, getLength, getLengthInUnits, getName, getOriginalDataType, getOwnedPageCount, getPageChannel, getProperties, getRowValue, getRowValue, getSQLType, getTable, getTextCodePage, getTextSortOrder, getType, getVarLenTableIndex, getVersionHistoryColumn, isAppendOnly, isAutoNumber, isCalculated, isCompressedUnicode, isGUIDValue, isHyperlink, isImmutableValue, isRawData, isVariableLength, postTableLoadInit, rawDataWrapper, read, readCodePage, readExtraFlags, readFromNullMask, readSortOrder, setColumnIndex, setColumnValidator, setRowValue, setRowValue, setUsageMaps, setVersionHistoryColumn, storeInNullMask, toBigDecimal, toBigDecimal, toBooleanValue, toByteArray, toCharSequence, toDateDouble, toInternalValue, toLocalDateDouble, toString, toUnscaledByteArray, validate, withErrorContext, write, write, writeDefinitions, writeFixedLengthField, writeFixedLengthField, writeToNullMaskCalcNumericColImpl(ColumnImpl.InitArgs args) throws java.io.IOException
java.io.IOExceptionpublic byte getPrecision()
getPrecision in interface ColumngetPrecision in class NumericColumnImplpublic java.lang.Object read(byte[] data,
java.nio.ByteOrder order)
throws java.io.IOException
ColumnImplread in class ColumnImpldata - The raw byte valueorder - Byte order in which the raw value is storedjava.io.IOExceptionprotected java.nio.ByteBuffer writeRealData(java.lang.Object obj,
int remainingRowLength,
java.nio.ByteOrder order)
throws java.io.IOException
writeRealData in class ColumnImpljava.io.IOExceptionprivate static java.math.BigDecimal readCalcNumericValue(java.nio.ByteBuffer buffer)
private void writeCalcNumericValue(java.nio.ByteBuffer buffer,
java.lang.Object value,
int dataLen)
throws java.io.IOException
java.io.IOExceptionprivate static void fixNumericByteOrder(byte[] bytes)
private static int toMul4(int val)