Package org.apache.drill.exec.vector
Class UntypedReaderImpl
java.lang.Object
org.apache.drill.exec.vector.complex.impl.AbstractFieldReader
org.apache.drill.exec.vector.UntypedReaderImpl
- All Implemented Interfaces:
Iterable<String>,Positionable,BaseReader,BaseReader.DictReader,BaseReader.ListReader,BaseReader.MapReader,BaseReader.RepeatedListReader,BaseReader.RepeatedMapReader,BaseReader.ScalarReader,BigIntReader,BitReader,DateReader,Decimal18Reader,Decimal28DenseReader,Decimal28SparseReader,Decimal38DenseReader,Decimal38SparseReader,Decimal9Reader,FieldReader,Float4Reader,Float8Reader,IntervalDayReader,IntervalReader,IntervalYearReader,IntReader,RepeatedBigIntReader,RepeatedBitReader,RepeatedDateReader,RepeatedDecimal18Reader,RepeatedDecimal28DenseReader,RepeatedDecimal28SparseReader,RepeatedDecimal38DenseReader,RepeatedDecimal38SparseReader,RepeatedDecimal9Reader,RepeatedFloat4Reader,RepeatedFloat8Reader,RepeatedIntervalDayReader,RepeatedIntervalReader,RepeatedIntervalYearReader,RepeatedIntReader,RepeatedSmallIntReader,RepeatedTimeReader,RepeatedTimeStampReader,RepeatedTinyIntReader,RepeatedUInt1Reader,RepeatedUInt2Reader,RepeatedUInt4Reader,RepeatedUInt8Reader,RepeatedVar16CharReader,RepeatedVarBinaryReader,RepeatedVarCharReader,RepeatedVarDecimalReader,SmallIntReader,TimeReader,TimeStampReader,TinyIntReader,UInt1Reader,UInt2Reader,UInt4Reader,UInt8Reader,Var16CharReader,VarBinaryReader,VarCharReader,VarDecimalReader,UntypedReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.vector.complex.reader.BaseReader
BaseReader.ComplexReader, BaseReader.DictReader, BaseReader.ListReader, BaseReader.MapReader, BaseReader.RepeatedListReader, BaseReader.RepeatedMapReader, BaseReader.ScalarReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAsValue(UnionWriter writer) voidcopyAsValue(BaseWriter.ListWriter writer) getField()getType()ReturnsStringrepresentation of the reader's type.booleanisSet()Returns true if the current value of the reader is not nulliterator()booleannext()voidread(int index, UnionHolder holder) voidread(int arrayIndex, UntypedNullHolder holder) voidread(UnionHolder holder) voidread(UntypedNullHolder holder) voidreset()voidsetPosition(int index) intsize()Methods inherited from class org.apache.drill.exec.vector.complex.impl.AbstractFieldReader
copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsField, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, copyAsValue, find, find, find, getVectorType, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readBigDecimal, readBigDecimal, readBoolean, readBoolean, readByte, readByte, readByteArray, readByteArray, readCharacter, readCharacter, readDouble, readDouble, reader, reader, readFloat, readFloat, readInteger, readInteger, readLocalDate, readLocalDate, readLocalDateTime, readLocalDateTime, readLocalTime, readLocalTime, readLong, readLong, readObject, readObject, readPeriod, readPeriod, readShort, readShort, readString, readString, readText, readTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.vector.complex.reader.BaseReader
copyAsValue, getField, getTypeString, read, read, resetMethods inherited from interface org.apache.drill.exec.vector.complex.reader.BaseReader.RepeatedListReader
copyAsValue, nextMethods inherited from interface org.apache.drill.exec.vector.complex.reader.BaseReader.RepeatedMapReader
nextMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.vector.complex.Positionable
setPosition
-
Constructor Details
-
UntypedReaderImpl
public UntypedReaderImpl()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceBaseReader
-
isSet
public boolean isSet()Description copied from class:AbstractFieldReaderReturns true if the current value of the reader is not null- Specified by:
isSetin interfaceBaseReader- Specified by:
isSetin interfaceBigIntReader- Specified by:
isSetin interfaceBitReader- Specified by:
isSetin interfaceDateReader- Specified by:
isSetin interfaceDecimal18Reader- Specified by:
isSetin interfaceDecimal28DenseReader- Specified by:
isSetin interfaceDecimal28SparseReader- Specified by:
isSetin interfaceDecimal38DenseReader- Specified by:
isSetin interfaceDecimal38SparseReader- Specified by:
isSetin interfaceDecimal9Reader- Specified by:
isSetin interfaceFloat4Reader- Specified by:
isSetin interfaceFloat8Reader- Specified by:
isSetin interfaceIntervalDayReader- Specified by:
isSetin interfaceIntervalReader- Specified by:
isSetin interfaceIntervalYearReader- Specified by:
isSetin interfaceIntReader- Specified by:
isSetin interfaceRepeatedBigIntReader- Specified by:
isSetin interfaceRepeatedBitReader- Specified by:
isSetin interfaceRepeatedDateReader- Specified by:
isSetin interfaceRepeatedDecimal18Reader- Specified by:
isSetin interfaceRepeatedDecimal28DenseReader- Specified by:
isSetin interfaceRepeatedDecimal28SparseReader- Specified by:
isSetin interfaceRepeatedDecimal38DenseReader- Specified by:
isSetin interfaceRepeatedDecimal38SparseReader- Specified by:
isSetin interfaceRepeatedDecimal9Reader- Specified by:
isSetin interfaceRepeatedFloat4Reader- Specified by:
isSetin interfaceRepeatedFloat8Reader- Specified by:
isSetin interfaceRepeatedIntervalDayReader- Specified by:
isSetin interfaceRepeatedIntervalReader- Specified by:
isSetin interfaceRepeatedIntervalYearReader- Specified by:
isSetin interfaceRepeatedIntReader- Specified by:
isSetin interfaceRepeatedSmallIntReader- Specified by:
isSetin interfaceRepeatedTimeReader- Specified by:
isSetin interfaceRepeatedTimeStampReader- Specified by:
isSetin interfaceRepeatedTinyIntReader- Specified by:
isSetin interfaceRepeatedUInt1Reader- Specified by:
isSetin interfaceRepeatedUInt2Reader- Specified by:
isSetin interfaceRepeatedUInt4Reader- Specified by:
isSetin interfaceRepeatedUInt8Reader- Specified by:
isSetin interfaceRepeatedVar16CharReader- Specified by:
isSetin interfaceRepeatedVarBinaryReader- Specified by:
isSetin interfaceRepeatedVarCharReader- Specified by:
isSetin interfaceRepeatedVarDecimalReader- Specified by:
isSetin interfaceSmallIntReader- Specified by:
isSetin interfaceTimeReader- Specified by:
isSetin interfaceTimeStampReader- Specified by:
isSetin interfaceTinyIntReader- Specified by:
isSetin interfaceUInt1Reader- Specified by:
isSetin interfaceUInt2Reader- Specified by:
isSetin interfaceUInt4Reader- Specified by:
isSetin interfaceUInt8Reader- Specified by:
isSetin interfaceUntypedReader- Specified by:
isSetin interfaceVar16CharReader- Specified by:
isSetin interfaceVarBinaryReader- Specified by:
isSetin interfaceVarCharReader- Specified by:
isSetin interfaceVarDecimalReader- Overrides:
isSetin classAbstractFieldReader- Returns:
-
size
public int size()- Specified by:
sizein interfaceBaseReader.RepeatedListReader- Specified by:
sizein interfaceBaseReader.RepeatedMapReader- Specified by:
sizein interfaceRepeatedBigIntReader- Specified by:
sizein interfaceRepeatedBitReader- Specified by:
sizein interfaceRepeatedDateReader- Specified by:
sizein interfaceRepeatedDecimal18Reader- Specified by:
sizein interfaceRepeatedDecimal28DenseReader- Specified by:
sizein interfaceRepeatedDecimal28SparseReader- Specified by:
sizein interfaceRepeatedDecimal38DenseReader- Specified by:
sizein interfaceRepeatedDecimal38SparseReader- Specified by:
sizein interfaceRepeatedDecimal9Reader- Specified by:
sizein interfaceRepeatedFloat4Reader- Specified by:
sizein interfaceRepeatedFloat8Reader- Specified by:
sizein interfaceRepeatedIntervalDayReader- Specified by:
sizein interfaceRepeatedIntervalReader- Specified by:
sizein interfaceRepeatedIntervalYearReader- Specified by:
sizein interfaceRepeatedIntReader- Specified by:
sizein interfaceRepeatedSmallIntReader- Specified by:
sizein interfaceRepeatedTimeReader- Specified by:
sizein interfaceRepeatedTimeStampReader- Specified by:
sizein interfaceRepeatedTinyIntReader- Specified by:
sizein interfaceRepeatedUInt1Reader- Specified by:
sizein interfaceRepeatedUInt2Reader- Specified by:
sizein interfaceRepeatedUInt4Reader- Specified by:
sizein interfaceRepeatedUInt8Reader- Specified by:
sizein interfaceRepeatedVar16CharReader- Specified by:
sizein interfaceRepeatedVarBinaryReader- Specified by:
sizein interfaceRepeatedVarCharReader- Specified by:
sizein interfaceRepeatedVarDecimalReader- Specified by:
sizein interfaceUntypedReader- Overrides:
sizein classAbstractFieldReader
-
read
- Specified by:
readin interfaceUntypedReader
-
read
- Specified by:
readin interfaceUntypedReader- Overrides:
readin classAbstractFieldReader
-
setPosition
public void setPosition(int index) - Specified by:
setPositionin interfacePositionable
-
reset
public void reset()- Specified by:
resetin interfaceBaseReader
-
iterator
-
getField
- Specified by:
getFieldin interfaceBaseReader
-
next
public boolean next()- Specified by:
nextin interfaceBaseReader.RepeatedListReader- Specified by:
nextin interfaceBaseReader.RepeatedMapReader
-
read
- Specified by:
readin interfaceBaseReader
-
read
- Specified by:
readin interfaceBaseReader
-
copyAsValue
- Specified by:
copyAsValuein interfaceBaseReader
-
copyAsValue
- Specified by:
copyAsValuein interfaceBaseReader.RepeatedListReader
-
getTypeString
Description copied from interface:BaseReaderReturnsStringrepresentation of the reader's type. In case ifBaseReader.getType()is primitive, the method is equivalent to}. If the reader has minor type equal toinvalid @link
{@link #getType().getMinorType().name()TypeProtos.MinorType.DICT,DICT<keyMinorType,valueMinorType>, withkeyMinorTypeandvalueMinorTypebeing key's and value's minor types respectively, will be returned. Used intypeOfUDF.- Specified by:
getTypeStringin interfaceBaseReader- Returns:
Stringrepresentation of reader's type.
-