Package org.apache.parquet.io
Class BaseRecordReader<T>
- java.lang.Object
-
- org.apache.parquet.io.RecordReader<T>
-
- org.apache.parquet.io.BaseRecordReader<T>
-
public abstract class BaseRecordReader<T> extends RecordReader<T>
-
-
Field Summary
Fields Modifier and Type Field Description ColumnReadStorecolumnStoreRecordConsumerrecordConsumerRecordMaterializer<T>recordMaterializer
-
Constructor Summary
Constructors Constructor Description BaseRecordReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddPrimitiveBINARY(String field, int index, Binary value)protected voidaddPrimitiveINT32(String field, int index, int value)protected voidaddPrimitiveINT64(String field, int index, long value)protected voidcurrentLevel(int currentLevel)protected voidendGroup(String field, int index)protected voidendMessage()protected voiderror(String message)protected intgetCaseId(int state, int currentLevel, int d, int nextR)protected voidlog(String message)Tread()Reads one record and returns it.protected abstract voidreadOneRecord()protected voidstartGroup(String field, int index)protected voidstartMessage()-
Methods inherited from class org.apache.parquet.io.RecordReader
shouldSkipCurrentRecord
-
-
-
-
Field Detail
-
recordConsumer
public RecordConsumer recordConsumer
-
recordMaterializer
public RecordMaterializer<T> recordMaterializer
-
columnStore
public ColumnReadStore columnStore
-
-
Method Detail
-
read
public T read()
Description copied from class:RecordReaderReads one record and returns it.- Specified by:
readin classRecordReader<T>- Returns:
- the materialized record
-
readOneRecord
protected abstract void readOneRecord()
-
currentLevel
protected void currentLevel(int currentLevel)
-
log
protected void log(String message)
-
getCaseId
protected final int getCaseId(int state, int currentLevel, int d, int nextR)
-
startMessage
protected final void startMessage()
-
startGroup
protected final void startGroup(String field, int index)
-
addPrimitiveINT64
protected final void addPrimitiveINT64(String field, int index, long value)
-
addPrimitiveINT32
protected final void addPrimitiveINT32(String field, int index, int value)
-
endGroup
protected final void endGroup(String field, int index)
-
endMessage
protected final void endMessage()
-
error
protected void error(String message)
-
-