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, wait
addNullValue
protected 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
ConversionException
public void addValue(String data) throws ConversionException
addValue
in interface IConverter
ConversionException
public void addValue(String[] data) throws ConversionException
ConversionException
public void addValue(double d, boolean isNull) throws InvalidTypeException, ConversionException
addValue
in interface IConverter
InvalidTypeException
ConversionException
public void addValue(long d, boolean isNull) throws InvalidTypeException, ConversionException
addValue
in interface IConverter
InvalidTypeException
ConversionException
public void addValue(long timeSeconds, int nanos, int zoneInfo, boolean isNull) throws InvalidTypeException, ConversionException
addValue
in interface IConverter
InvalidTypeException
ConversionException
public void addValue(BigDecimal data) throws InvalidTypeException, ConversionException
addValue
in interface IConverter
InvalidTypeException
ConversionException
public void clearBuffers()
clearBuffers
in interface IConverter
public boolean hasNullBuffer()
public ByteBuffer[] getBufferArray()
getBufferArray
in interface IConverter
public long getNativeMemoryPointer()
getNativeMemoryPointer
in interface IConverter
public void freeNativeMemory()
freeNativeMemory
in interface IConverter
public ByteBuffer getNullBuffer()
Copyright © 2015 Actian Corporation. All Rights Reserved.