public class TajoReadSupport extends parquet.hadoop.api.ReadSupport<Tuple>
ReadSupport
for Tuple
s.
Users should use ParquetScanner
and not this class directly.Modifier and Type | Field and Description |
---|---|
static String |
TAJO_SCHEMA_METADATA_KEY
The key for the Tajo schema stored in the Parquet file metadata.
|
Constructor and Description |
---|
TajoReadSupport(Schema readSchema)
Creates a new TajoReadSupport.
|
TajoReadSupport(Schema readSchema,
Schema requestedSchema)
Creates a new TajoReadSupport.
|
Modifier and Type | Method and Description |
---|---|
parquet.hadoop.api.ReadSupport.ReadContext |
init(parquet.hadoop.api.InitContext context)
Initializes the ReadSupport.
|
parquet.io.api.RecordMaterializer<Tuple> |
prepareForRead(org.apache.hadoop.conf.Configuration configuration,
Map<String,String> keyValueMetaData,
parquet.schema.MessageType fileSchema,
parquet.hadoop.api.ReadSupport.ReadContext readContext)
Prepares for read.
|
public static final String TAJO_SCHEMA_METADATA_KEY
public TajoReadSupport(Schema readSchema, Schema requestedSchema)
requestedSchema
- The Tajo schema of the requested projection passed
down by ParquetScanner.public TajoReadSupport(Schema readSchema)
readSchema
- The schema of the table.public parquet.hadoop.api.ReadSupport.ReadContext init(parquet.hadoop.api.InitContext context)
init
in class parquet.hadoop.api.ReadSupport<Tuple>
context
- The InitContext.public parquet.io.api.RecordMaterializer<Tuple> prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, parquet.schema.MessageType fileSchema, parquet.hadoop.api.ReadSupport.ReadContext readContext)
prepareForRead
in class parquet.hadoop.api.ReadSupport<Tuple>
configuration
- The job configuration.keyValueMetaData
- App-specific metadata from the file.fileSchema
- The schema of the Parquet file.readContext
- Returned by the init method.Copyright © 2014 Apache Software Foundation. All Rights Reserved.