class CalculatedColumnUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
CalculatedColumnUtil.CalcBooleanColImpl
Calculated BOOLEAN column implementation.
|
private static class |
CalculatedColumnUtil.CalcColImpl
General calculated column implementation.
|
private static class |
CalculatedColumnUtil.CalcMemoColImpl
Calculated MEMO column implementation.
|
private static class |
CalculatedColumnUtil.CalcNumericColImpl
Calculated NUMERIC column implementation.
|
private static class |
CalculatedColumnUtil.CalcTextColImpl
Calculated TEXT column implementation.
|
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
CALC_BOOL_FALSE |
private static byte[] |
CALC_BOOL_TRUE |
private static int |
CALC_DATA_LEN_OFFSET |
private static int |
CALC_DATA_OFFSET |
(package private) static int |
CALC_EXTRA_DATA_LEN |
(package private) static short |
CALC_FIXED_FIELD_LEN |
| Constructor and Description |
|---|
CalculatedColumnUtil() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static ColumnImpl |
create(ColumnImpl.InitArgs args)
Creates the appropriate ColumnImpl class for a calculated column and
reads a column definition in from a buffer
|
private static java.nio.ByteBuffer |
prepareWrappedCalcValue(int dataLen,
java.nio.ByteOrder order)
Prepares a calculated value buffer for data of the given length.
|
private static byte[] |
unwrapCalculatedValue(byte[] data)
Grabs the real data bytes from a calculated value.
|
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.
|
private static java.nio.ByteBuffer |
wrapCalculatedValue(java.nio.ByteBuffer buffer)
Wraps the given data bytes with the extra calculated value data and
returns a new ByteBuffer containing the final data.
|
private static final int CALC_DATA_LEN_OFFSET
private static final int CALC_DATA_OFFSET
static final int CALC_EXTRA_DATA_LEN
static final short CALC_FIXED_FIELD_LEN
private static final byte[] CALC_BOOL_TRUE
private static final byte[] CALC_BOOL_FALSE
static ColumnImpl create(ColumnImpl.InitArgs args) throws java.io.IOException
args - column construction infojava.io.IOExceptionprivate static byte[] unwrapCalculatedValue(byte[] data)
private static java.nio.ByteBuffer wrapCalculatedValue(java.nio.ByteBuffer buffer)
private static byte[] wrapCalculatedValue(byte[] data)
private static java.nio.ByteBuffer prepareWrappedCalcValue(int dataLen,
java.nio.ByteOrder order)