public static class ConvertTreeReaderFactory.ConvertTreeReader extends TreeReaderFactory.TreeReader
columnId, context, present, vectorColumnCount| Modifier and Type | Method and Description |
|---|---|
protected void |
assignStringGroupVectorEntry(BytesColumnVector bytesColVector,
int elementNum,
TypeDescription readerType,
byte[] bytes) |
protected void |
assignStringGroupVectorEntry(BytesColumnVector bytesColVector,
int elementNum,
TypeDescription readerType,
byte[] bytes,
int start,
int length) |
protected void |
convertStringGroupVectorElement(BytesColumnVector bytesColVector,
int elementNum,
TypeDescription readerType) |
void |
convertVector(ColumnVector fromColVector,
ColumnVector resultColVector,
int batchSize) |
boolean |
doubleCanFitInLong(double doubleValue) |
void |
downCastAnyInteger(LongColumnVector longColVector,
int elementNum,
long inputLong,
TypeDescription readerType) |
void |
downCastAnyInteger(LongColumnVector longColVector,
int elementNum,
TypeDescription readerType) |
protected boolean |
getIsParseError() |
protected TreeReaderFactory.TreeReader |
getStringGroupTreeReader(int columnId,
TypeDescription fileType,
TreeReaderFactory.Context context) |
protected boolean |
integerDownCastNeeded(TypeDescription fileType,
TypeDescription readerType) |
protected Date |
parseDateFromString(String string) |
protected HiveDecimal |
parseDecimalFromString(String string) |
protected double |
parseDoubleFromString(String string) |
protected float |
parseFloatFromString(String string) |
protected long |
parseLongFromString(String string) |
protected Timestamp |
parseTimestampFromString(String string) |
void |
seek(PositionProvider index) |
void |
seek(PositionProvider[] index)
Seek to the given position.
|
protected void |
setConvertTreeReader(TreeReaderFactory.TreeReader convertTreeReader) |
void |
setConvertVectorElement(int elementNum)
Override this to use convertVector.
|
protected String |
stringFromBytesColumnVectorEntry(BytesColumnVector bytesColVector,
int elementNum) |
countNonNulls, createIntegerReader, getColumnId, getPresent, nextBatch, nextVectorprotected void setConvertTreeReader(TreeReaderFactory.TreeReader convertTreeReader)
protected TreeReaderFactory.TreeReader getStringGroupTreeReader(int columnId, TypeDescription fileType, TreeReaderFactory.Context context) throws IOException
IOExceptionprotected void assignStringGroupVectorEntry(BytesColumnVector bytesColVector, int elementNum, TypeDescription readerType, byte[] bytes)
protected void assignStringGroupVectorEntry(BytesColumnVector bytesColVector, int elementNum, TypeDescription readerType, byte[] bytes, int start, int length)
protected void convertStringGroupVectorElement(BytesColumnVector bytesColVector, int elementNum, TypeDescription readerType)
protected boolean getIsParseError()
protected long parseLongFromString(String string)
protected float parseFloatFromString(String string)
protected double parseDoubleFromString(String string)
protected HiveDecimal parseDecimalFromString(String string)
string - protected Timestamp parseTimestampFromString(String string)
string - protected Date parseDateFromString(String string)
string - protected String stringFromBytesColumnVectorEntry(BytesColumnVector bytesColVector, int elementNum)
public boolean doubleCanFitInLong(double doubleValue)
public void seek(PositionProvider[] index) throws IOException
TreeReaderFactory.TreeReaderseek in class TreeReaderFactory.TreeReaderindex - the indexes loaded from the fileIOExceptionpublic void seek(PositionProvider index) throws IOException
seek in class TreeReaderFactory.TreeReaderIOExceptionpublic void setConvertVectorElement(int elementNum)
throws IOException
elementNum - IOExceptionpublic void convertVector(ColumnVector fromColVector, ColumnVector resultColVector, int batchSize) throws IOException
IOExceptionpublic void downCastAnyInteger(LongColumnVector longColVector, int elementNum, TypeDescription readerType)
public void downCastAnyInteger(LongColumnVector longColVector, int elementNum, long inputLong, TypeDescription readerType)
protected boolean integerDownCastNeeded(TypeDescription fileType, TypeDescription readerType)
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.