public abstract class DTConverter extends Object implements IConverter, ConverterConstants
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
protected ByteBuffer |
myBuffer |
protected ByteBuffer[] |
myBufferArray |
protected ByteBuffer |
myNullBuffer |
DAYS_SINCE_EPOCH, GMT_TIME_MASK, SECONDS_IN_DAY, SECONDS_SINCE_EPOCH, ZONE_MIN_MASK| Constructor and Description |
|---|
DTConverter(int vectorSize,
boolean isNull) |
DTConverter(int objectSize,
int vectorSize,
boolean isNull) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(BigDecimal data) |
void |
addValue(double d,
boolean isNull) |
void |
addValue(long d,
boolean isNull) |
void |
addValue(long timeSeconds,
int nanos,
int zoneInfo,
boolean isNull) |
void |
addValue(String data) |
void |
addValue(String[] data) |
protected void |
allocate()
Allocates native buffers
|
void |
clearBuffers() |
void |
freeNativeMemory()
default implementation.
|
ByteBuffer[] |
getBufferArray() |
long |
getNativeMemoryPointer() |
ByteBuffer |
getNullBuffer() |
String |
getType() |
boolean |
hasNullBuffer() |
protected void |
resize(int width)
This method will resize the native buffer.
|
protected void |
sizeCheck() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNullValueprotected ByteBuffer myBuffer
protected ByteBuffer myNullBuffer
protected ByteBuffer[] myBufferArray
public static final org.apache.commons.logging.Log LOG
public DTConverter(int vectorSize,
boolean isNull)
public DTConverter(int objectSize,
int vectorSize,
boolean isNull)
public String getType()
protected void allocate()
protected void resize(int width)
width - -- column widthprotected void sizeCheck()
throws ConversionException
ConversionExceptionpublic void addValue(String data) throws ConversionException
addValue in interface IConverterConversionExceptionpublic void addValue(String[] data) throws ConversionException
ConversionExceptionpublic void addValue(double d,
boolean isNull)
throws InvalidTypeException,
ConversionException
addValue in interface IConverterInvalidTypeExceptionConversionExceptionpublic void addValue(long d,
boolean isNull)
throws InvalidTypeException,
ConversionException
addValue in interface IConverterInvalidTypeExceptionConversionExceptionpublic void addValue(long timeSeconds,
int nanos,
int zoneInfo,
boolean isNull)
throws InvalidTypeException,
ConversionException
addValue in interface IConverterInvalidTypeExceptionConversionExceptionpublic void addValue(BigDecimal data) throws InvalidTypeException, ConversionException
addValue in interface IConverterInvalidTypeExceptionConversionExceptionpublic void clearBuffers()
clearBuffers in interface IConverterpublic boolean hasNullBuffer()
public ByteBuffer[] getBufferArray()
getBufferArray in interface IConverterpublic long getNativeMemoryPointer()
getNativeMemoryPointer in interface IConverterpublic void freeNativeMemory()
freeNativeMemory in interface IConverterpublic ByteBuffer getNullBuffer()
Copyright © 2015 Actian Corporation. All Rights Reserved.