public static class ParquetDataColumnReaderFactory.DefaultParquetDataColumnReader extends Object implements ParquetDataColumnReader
Modifier and Type | Field and Description |
---|---|
protected org.apache.parquet.column.Dictionary |
dict |
protected org.apache.parquet.column.values.ValuesReader |
valuesReader |
Constructor and Description |
---|
DefaultParquetDataColumnReader(org.apache.parquet.column.Dictionary dict) |
DefaultParquetDataColumnReader(org.apache.parquet.column.values.ValuesReader valuesReader) |
Modifier and Type | Method and Description |
---|---|
org.apache.parquet.column.Dictionary |
getDictionary() |
void |
initFromPage(int i,
org.apache.parquet.bytes.ByteBufferInputStream in)
Initialize the reader by page data.
|
boolean |
readBoolean() |
boolean |
readBoolean(int id) |
byte[] |
readBytes() |
byte[] |
readBytes(int id) |
double |
readDouble() |
double |
readDouble(int id) |
float |
readFloat() |
float |
readFloat(int id) |
int |
readInteger() |
int |
readInteger(int id) |
long |
readLong() |
long |
readLong(int id) |
int |
readSmallInt() |
int |
readSmallInt(int id) |
TimestampData |
readTimestamp() |
TimestampData |
readTimestamp(int id) |
int |
readTinyInt() |
int |
readTinyInt(int id) |
int |
readValueDictionaryId() |
void |
skip() |
protected final org.apache.parquet.column.values.ValuesReader valuesReader
protected final org.apache.parquet.column.Dictionary dict
public DefaultParquetDataColumnReader(org.apache.parquet.column.values.ValuesReader valuesReader)
public DefaultParquetDataColumnReader(org.apache.parquet.column.Dictionary dict)
public void initFromPage(int i, org.apache.parquet.bytes.ByteBufferInputStream in) throws IOException
ParquetDataColumnReader
initFromPage
in interface ParquetDataColumnReader
i
- value countin
- page dataIOException
public boolean readBoolean()
readBoolean
in interface ParquetDataColumnReader
public boolean readBoolean(int id)
readBoolean
in interface ParquetDataColumnReader
id
- in dictionarypublic byte[] readBytes()
readBytes
in interface ParquetDataColumnReader
public byte[] readBytes(int id)
readBytes
in interface ParquetDataColumnReader
id
- in dictionarypublic float readFloat()
readFloat
in interface ParquetDataColumnReader
public float readFloat(int id)
readFloat
in interface ParquetDataColumnReader
id
- in dictionarypublic double readDouble()
readDouble
in interface ParquetDataColumnReader
public double readDouble(int id)
readDouble
in interface ParquetDataColumnReader
id
- in dictionarypublic TimestampData readTimestamp()
readTimestamp
in interface ParquetDataColumnReader
public TimestampData readTimestamp(int id)
readTimestamp
in interface ParquetDataColumnReader
id
- in dictionarypublic int readInteger()
readInteger
in interface ParquetDataColumnReader
public int readInteger(int id)
readInteger
in interface ParquetDataColumnReader
id
- in dictionarypublic long readLong(int id)
readLong
in interface ParquetDataColumnReader
id
- in dictionarypublic long readLong()
readLong
in interface ParquetDataColumnReader
public int readSmallInt()
readSmallInt
in interface ParquetDataColumnReader
public int readSmallInt(int id)
readSmallInt
in interface ParquetDataColumnReader
id
- in dictionarypublic int readTinyInt()
readTinyInt
in interface ParquetDataColumnReader
public int readTinyInt(int id)
readTinyInt
in interface ParquetDataColumnReader
id
- in dictionarypublic int readValueDictionaryId()
readValueDictionaryId
in interface ParquetDataColumnReader
public void skip()
public org.apache.parquet.column.Dictionary getDictionary()
getDictionary
in interface ParquetDataColumnReader
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.