public static class ParquetDataColumnReaderFactory.DefaultParquetDataColumnReader extends Object implements ParquetDataColumnReader
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.parquet.column.Dictionary |
dict |
protected int |
length |
protected org.apache.parquet.column.values.ValuesReader |
valuesReader |
| Constructor and Description |
|---|
DefaultParquetDataColumnReader(org.apache.parquet.column.Dictionary dict,
int length) |
DefaultParquetDataColumnReader(org.apache.parquet.column.values.ValuesReader valuesReader,
int length) |
| Modifier and Type | Method and Description |
|---|---|
protected static byte[] |
convertToBytes(String value)
Method to convert string to UTF-8 bytes.
|
protected String |
enforceMaxLength(String value)
Enforce the max legnth of varchar or char.
|
org.apache.parquet.column.Dictionary |
getDictionary() |
protected String |
getPaddedString(String value)
Enforce the char length.
|
void |
initFromPage(int i,
org.apache.parquet.bytes.ByteBufferInputStream in)
Initialize the reader by page data.
|
boolean |
isValid(double value) |
boolean |
isValid(float value) |
boolean |
isValid(long value) |
boolean |
readBoolean() |
boolean |
readBoolean(int id) |
byte[] |
readBytes() |
byte[] |
readBytes(int id) |
byte[] |
readChar() |
byte[] |
readChar(int id) |
byte[] |
readDecimal() |
byte[] |
readDecimal(int id) |
double |
readDouble() |
double |
readDouble(int id) |
float |
readFloat() |
float |
readFloat(int id) |
long |
readInteger() |
long |
readInteger(int id) |
long |
readLong() |
long |
readLong(int id) |
byte[] |
readString() |
byte[] |
readString(int id) |
Timestamp |
readTimestamp() |
Timestamp |
readTimestamp(int id) |
int |
readValueDictionaryId() |
byte[] |
readVarchar() |
byte[] |
readVarchar(int id) |
void |
skip() |
protected org.apache.parquet.column.values.ValuesReader valuesReader
protected org.apache.parquet.column.Dictionary dict
protected int length
public DefaultParquetDataColumnReader(org.apache.parquet.column.values.ValuesReader valuesReader,
int length)
public DefaultParquetDataColumnReader(org.apache.parquet.column.Dictionary dict,
int length)
public void initFromPage(int i,
org.apache.parquet.bytes.ByteBufferInputStream in)
throws IOException
ParquetDataColumnReaderinitFromPage in interface ParquetDataColumnReaderi - value countin - page dataIOExceptionpublic boolean readBoolean()
readBoolean in interface ParquetDataColumnReaderpublic boolean readBoolean(int id)
readBoolean in interface ParquetDataColumnReaderid - in dictionarypublic byte[] readString(int id)
readString in interface ParquetDataColumnReaderid - in dictionarypublic byte[] readString()
readString in interface ParquetDataColumnReaderpublic byte[] readVarchar()
readVarchar in interface ParquetDataColumnReaderpublic byte[] readVarchar(int id)
readVarchar in interface ParquetDataColumnReaderid - in dictionarypublic byte[] readChar()
readChar in interface ParquetDataColumnReaderpublic byte[] readChar(int id)
readChar in interface ParquetDataColumnReaderid - in dictionarypublic byte[] readBytes()
readBytes in interface ParquetDataColumnReaderpublic byte[] readBytes(int id)
readBytes in interface ParquetDataColumnReaderid - in dictionarypublic byte[] readDecimal()
readDecimal in interface ParquetDataColumnReaderpublic byte[] readDecimal(int id)
readDecimal in interface ParquetDataColumnReaderid - in dictionarypublic float readFloat()
readFloat in interface ParquetDataColumnReaderpublic float readFloat(int id)
readFloat in interface ParquetDataColumnReaderid - in dictionarypublic double readDouble()
readDouble in interface ParquetDataColumnReaderpublic double readDouble(int id)
readDouble in interface ParquetDataColumnReaderid - in dictionarypublic Timestamp readTimestamp()
readTimestamp in interface ParquetDataColumnReaderpublic Timestamp readTimestamp(int id)
readTimestamp in interface ParquetDataColumnReaderid - in dictionarypublic long readInteger()
readInteger in interface ParquetDataColumnReaderpublic long readInteger(int id)
readInteger in interface ParquetDataColumnReaderid - in dictionarypublic boolean isValid(long value)
isValid in interface ParquetDataColumnReadervalue - data to be checked for validitypublic boolean isValid(float value)
isValid in interface ParquetDataColumnReaderpublic boolean isValid(double value)
isValid in interface ParquetDataColumnReaderpublic long readLong(int id)
readLong in interface ParquetDataColumnReaderid - in dictionarypublic long readLong()
readLong in interface ParquetDataColumnReaderpublic int readValueDictionaryId()
readValueDictionaryId in interface ParquetDataColumnReaderpublic void skip()
public org.apache.parquet.column.Dictionary getDictionary()
getDictionary in interface ParquetDataColumnReaderprotected String enforceMaxLength(String value)
protected static byte[] convertToBytes(String value)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.