These are the currently possible calculated types: FLOAT, DOUBLE, INT, LONG, BIG_INT, GUID, SHORT_DATE_TIME, MONEY, BOOLEAN, NUMERIC, TEXT, MEMO.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CalculatedColumnUtil.
Calculated BOOLEAN column implementation. |
| private static class | CalculatedColumnUtil.
General calculated column implementation. |
| private static class | CalculatedColumnUtil.
Calculated MEMO column implementation. |
| private static class | CalculatedColumnUtil.
Calculated NUMERIC column implementation. |
| private static class | CalculatedColumnUtil.
Calculated TEXT column implementation. |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final byte[] | |
| private static final int | |
| private static final int | |
| pack-priv static final short | |
| pack-priv static final short |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ColumnImpl | create(ColumnImpl.
column construction info argsCreates the appropriate ColumnImpl class for a calculated column and reads a column definition in from a buffer |
| private static ByteBuffer | prepareWrappedCalcValue(int dataLen, ByteOrder order)
Prepares a calculated value buffer for data of the given length. |
| private static byte[] | |
| private static byte[] | wrapCalculatedValue(byte[] data)
Wraps the given data bytes with the extra calculated value data and returns a new byte[] containing the final data. |
| CALC_BOOL_FALSE | back to summary |
|---|---|
| private static final byte[] CALC_BOOL_FALSE | |
| CALC_BOOL_TRUE | back to summary |
|---|---|
| private static final byte[] CALC_BOOL_TRUE | |
| CALC_DATA_LEN_OFFSET | back to summary |
|---|---|
| private static final int CALC_DATA_LEN_OFFSET | |
| CALC_DATA_OFFSET | back to summary |
|---|---|
| private static final int CALC_DATA_OFFSET | |
| CALC_EXTRA_DATA_LEN | back to summary |
|---|---|
| pack-priv static final short CALC_EXTRA_DATA_LEN | |
| CALC_FIXED_FIELD_LEN | back to summary |
|---|---|
| pack-priv static final short CALC_FIXED_FIELD_LEN | |
| CalculatedColumnUtil | back to summary |
|---|---|
| private CalculatedColumnUtil() | |
| create | back to summary |
|---|---|
| pack-priv static ColumnImpl create(ColumnImpl. Creates the appropriate ColumnImpl class for a calculated column and reads a column definition in from a buffer
| |
| prepareWrappedCalcValue | back to summary |
|---|---|
| private static ByteBuffer prepareWrappedCalcValue(int dataLen, ByteOrder order) Prepares a calculated value buffer for data of the given length. | |
| unwrapCalculatedValue | back to summary |
|---|---|
| private static byte[] unwrapCalculatedValue(byte[] data) Grabs the real data bytes from a calculated value. | |
| wrapCalculatedValue | back to summary |
|---|---|
| private static byte[] wrapCalculatedValue(byte[] data) Wraps the given data bytes with the extra calculated value data and returns a new byte[] containing the final data. | |
| Modifier and Type | Field and Description |
|---|---|
| private CalcColEvalContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected CalcColEvalContext | getCalculationContext()
Overrides io. Returns the context used to manage calculated column values. |
| public Object | read(byte[] data, ByteOrder order)
Overrides io. Deserialize a raw byte value for this column into an Object |
| protected void | |
| public boolean | |
| protected ByteBuffer | writeRealData(Object obj, int remainingRowLength, ByteOrder order)
Overrides io.
|
| calcCol | back to summary |
|---|---|
| private CalcColEvalContext calcCol | |
| CalcBooleanColImpl | back to summary |
|---|---|
| pack-priv CalcBooleanColImpl(ColumnImpl. | |
| getCalculationContext | back to summary |
|---|---|
| protected CalcColEvalContext getCalculationContext() Overrides io. Doc from io. Returns the context used to manage calculated column values.
| |
| read | back to summary |
|---|---|
| public Object read(byte[] data, ByteOrder order) Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| setCalcColEvalContext | back to summary |
|---|---|
| protected void setCalcColEvalContext(CalcColEvalContext newCalcCol) Overrides io.
| |
| storeInNullMask | back to summary |
|---|---|
| public boolean storeInNullMask() Overrides io.
| |
| writeRealData | back to summary |
|---|---|
| protected ByteBuffer writeRealData(Object obj, int remainingRowLength, ByteOrder order) Overrides io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private CalcColEvalContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected CalcColEvalContext | getCalculationContext()
Overrides io. Returns the context used to manage calculated column values. |
| public Object | read(byte[] data, ByteOrder order)
Overrides io. Deserialize a raw byte value for this column into an Object |
| protected void | |
| protected ByteBuffer | writeRealData(Object obj, int remainingRowLength, ByteOrder order)
Overrides io.
|
| calcCol | back to summary |
|---|---|
| private CalcColEvalContext calcCol | |
| CalcColImpl | back to summary |
|---|---|
| pack-priv CalcColImpl(ColumnImpl. | |
| getCalculationContext | back to summary |
|---|---|
| protected CalcColEvalContext getCalculationContext() Overrides io. Doc from io. Returns the context used to manage calculated column values.
| |
| read | back to summary |
|---|---|
| public Object read(byte[] data, ByteOrder order) throws IOException Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| setCalcColEvalContext | back to summary |
|---|---|
| protected void setCalcColEvalContext(CalcColEvalContext newCalcCol) Overrides io.
| |
| writeRealData | back to summary |
|---|---|
| protected ByteBuffer writeRealData(Object obj, int remainingRowLength, ByteOrder order) throws IOException Overrides io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private CalcColEvalContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| protected CalcColEvalContext | getCalculationContext()
Overrides io. Returns the context used to manage calculated column values. |
| protected byte[] | readLongValue(byte[] lvalDefinition)
Overrides io. Returns the LVAL data. |
| protected void | |
| protected ByteBuffer | writeLongValue(byte[] value, int remainingRowLength)
Overrides io. Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s). |
| calcCol | back to summary |
|---|---|
| private CalcColEvalContext calcCol | |
| CalcMemoColImpl | back to summary |
|---|---|
| pack-priv CalcMemoColImpl(ColumnImpl. | |
| calcMaxLengthInUnits | back to summary |
|---|---|
| protected int calcMaxLengthInUnits() Overrides io.
| |
| getCalculationContext | back to summary |
|---|---|
| protected CalcColEvalContext getCalculationContext() Overrides io. Doc from io. Returns the context used to manage calculated column values.
| |
| readLongValue | back to summary |
|---|---|
| protected byte[] readLongValue(byte[] lvalDefinition) throws IOException Overrides io. Doc from io. Returns the LVAL data.
| |
| setCalcColEvalContext | back to summary |
|---|---|
| protected void setCalcColEvalContext(CalcColEvalContext newCalcCol) Overrides io.
| |
| writeLongValue | back to summary |
|---|---|
| protected ByteBuffer writeLongValue(byte[] value, int remainingRowLength) throws IOException Overrides io. Doc from io. Write an LVAL column into a ByteBuffer inline if it fits, otherwise in other data page(s).
| |
| Modifier and Type | Field and Description |
|---|---|
| private CalcColEvalContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | fixNumericByteOrder(byte[] bytes)
Hides io. Swaps the bytes of the given numeric in place. |
| protected CalcColEvalContext | getCalculationContext()
Overrides io. Returns the context used to manage calculated column values. |
| public byte | getPrecision()
Overrides io. Implements io. Returns the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY). |
| public Object | read(byte[] data, ByteOrder order)
Overrides io. Deserialize a raw byte value for this column into an Object |
| private static BigDecimal | |
| protected void | |
| private static int | |
| private void | |
| protected ByteBuffer | writeRealData(Object obj, int remainingRowLength, ByteOrder order)
Overrides io.
|
| calcCol | back to summary |
|---|---|
| private CalcColEvalContext calcCol | |
| CalcNumericColImpl | back to summary |
|---|---|
| pack-priv CalcNumericColImpl(ColumnImpl. | |
| fixNumericByteOrder | back to summary |
|---|---|
| private static void fixNumericByteOrder(byte[] bytes) Hides io. Doc from io. Swaps the bytes of the given numeric in place. | |
| getCalculationContext | back to summary |
|---|---|
| protected CalcColEvalContext getCalculationContext() Overrides io. Doc from io. Returns the context used to manage calculated column values.
| |
| getPrecision | back to summary |
|---|---|
| public byte getPrecision() Overrides io. Implements io. Doc from io. Returns the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY).
| |
| read | back to summary |
|---|---|
| public Object read(byte[] data, ByteOrder order) Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| readCalcNumericValue | back to summary |
|---|---|
| private static BigDecimal readCalcNumericValue(ByteBuffer buffer) | |
| setCalcColEvalContext | back to summary |
|---|---|
| protected void setCalcColEvalContext(CalcColEvalContext newCalcCol) Overrides io.
| |
| toMul4 | back to summary |
|---|---|
| private static int toMul4(int val) | |
| writeCalcNumericValue | back to summary |
|---|---|
| private void writeCalcNumericValue(ByteBuffer buffer, Object value, int dataLen) throws IOException | |
| writeRealData | back to summary |
|---|---|
| protected ByteBuffer writeRealData(Object obj, int remainingRowLength, ByteOrder order) throws IOException Overrides io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private CalcColEvalContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| protected CalcColEvalContext | getCalculationContext()
Overrides io. Returns the context used to manage calculated column values. |
| public Object | read(byte[] data, ByteOrder order)
Overrides io. Deserialize a raw byte value for this column into an Object |
| protected void | |
| private static ByteBuffer | wrapCalculatedValue(ByteBuffer buffer)
Wraps the given data bytes with the extra calculated value data and returns a new ByteBuffer containing the final data. |
| protected ByteBuffer | writeRealData(Object obj, int remainingRowLength, ByteOrder order)
Overrides io.
|
| calcCol | back to summary |
|---|---|
| private CalcColEvalContext calcCol | |
| CalcTextColImpl | back to summary |
|---|---|
| pack-priv CalcTextColImpl(ColumnImpl. | |
| calcLengthInUnits | back to summary |
|---|---|
| protected int calcLengthInUnits() Overrides io.
| |
| getCalculationContext | back to summary |
|---|---|
| protected CalcColEvalContext getCalculationContext() Overrides io. Doc from io. Returns the context used to manage calculated column values.
| |
| read | back to summary |
|---|---|
| public Object read(byte[] data, ByteOrder order) Overrides io. Doc from io. Deserialize a raw byte value for this column into an Object
| |
| setCalcColEvalContext | back to summary |
|---|---|
| protected void setCalcColEvalContext(CalcColEvalContext newCalcCol) Overrides io.
| |
| wrapCalculatedValue | back to summary |
|---|---|
| private static ByteBuffer wrapCalculatedValue(ByteBuffer buffer) Wraps the given data bytes with the extra calculated value data and returns a new ByteBuffer containing the final data. | |
| writeRealData | back to summary |
|---|---|
| protected ByteBuffer writeRealData(Object obj, int remainingRowLength, ByteOrder order) throws IOException Overrides io.
| |