public class TajoRecordConverter
extends parquet.io.api.GroupConverter
Constructor and Description |
---|
TajoRecordConverter(parquet.schema.GroupType parquetSchema,
Schema tajoReadSchema,
int[] projectionMap)
Creates a new TajoRecordConverter.
|
Modifier and Type | Method and Description |
---|---|
void |
end()
Called after all fields have been processed.
|
parquet.io.api.Converter |
getConverter(int fieldIndex)
Gets the converter for a specific field.
|
Tuple |
getCurrentRecord()
Returns the current record converted by this converter.
|
void |
start()
Called before processing fields.
|
public TajoRecordConverter(parquet.schema.GroupType parquetSchema, Schema tajoReadSchema, int[] projectionMap)
parquetSchema
- The Parquet schema of the projection.tajoReadSchema
- The Tajo schema of the table.projectionMap
- An array mapping the projection column to the column
index in the table.public parquet.io.api.Converter getConverter(int fieldIndex)
getConverter
in class parquet.io.api.GroupConverter
fieldIndex
- Index of the field in the projection.public void start()
start
in class parquet.io.api.GroupConverter
public void end()
end
in class parquet.io.api.GroupConverter
public Tuple getCurrentRecord()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.