public static class ConvertTreeReaderFactory.ConvertTreeReader extends TreeReaderFactory.TreeReader
TypeReader.ReaderCategory, TypeReader.ReadPhase
columnId, context, present, readerCategory
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) |
void |
checkEncoding(OrcProto.ColumnEncoding encoding) |
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 boolean |
integerDownCastNeeded(TypeDescription fileType,
TypeDescription readerType) |
protected HiveDecimal |
parseDecimalFromString(String string) |
protected double |
parseDoubleFromString(String string) |
protected float |
parseFloatFromString(String string) |
protected long |
parseLongFromString(String string) |
void |
seek(PositionProvider[] index,
TypeReader.ReadPhase readPhase)
Seek to the given position.
|
void |
seek(PositionProvider index,
TypeReader.ReadPhase readPhase) |
void |
setConvertVectorElement(int elementNum)
Override this to use convertVector.
|
void |
skipRows(long items,
TypeReader.ReadPhase readPhase) |
void |
startStripe(StripePlanner planner,
TypeReader.ReadPhase readPhase) |
countNonNullRowsInRange, countNonNulls, createIntegerReader, getColumnId, getPresent, getReaderCategory, nextVector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldProcessChild
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)
protected boolean getIsParseError()
protected long parseLongFromString(String string)
protected float parseFloatFromString(String string)
protected double parseDoubleFromString(String string)
protected HiveDecimal parseDecimalFromString(String string)
string
- public boolean doubleCanFitInLong(double doubleValue)
public void checkEncoding(OrcProto.ColumnEncoding encoding) throws IOException
checkEncoding
in interface TypeReader
checkEncoding
in class TreeReaderFactory.TreeReader
IOException
public void startStripe(StripePlanner planner, TypeReader.ReadPhase readPhase) throws IOException
startStripe
in interface TypeReader
startStripe
in class TreeReaderFactory.TreeReader
IOException
public void seek(PositionProvider[] index, TypeReader.ReadPhase readPhase) throws IOException
TreeReaderFactory.TreeReader
seek
in interface TypeReader
seek
in class TreeReaderFactory.TreeReader
index
- the indexes loaded from the filereadPhase
- the current readPhaseIOException
public void seek(PositionProvider index, TypeReader.ReadPhase readPhase) throws IOException
seek
in interface TypeReader
seek
in class TreeReaderFactory.TreeReader
IOException
public void skipRows(long items, TypeReader.ReadPhase readPhase) throws IOException
IOException
public void setConvertVectorElement(int elementNum) throws IOException
elementNum
- IOException
public void convertVector(ColumnVector fromColVector, ColumnVector resultColVector, int batchSize) throws IOException
IOException
public 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–2023 The Apache Software Foundation. All rights reserved.