public class TajoParquetWriter extends parquet.hadoop.ParquetWriter<Tuple>
ParquetWriter
to write Tajo records to a
Parquet file. Users should use ParquetAppender
and not this class
directly.Constructor and Description |
---|
TajoParquetWriter(org.apache.hadoop.fs.Path file,
Schema schema)
Creates a new TajoParquetWriter.
|
TajoParquetWriter(org.apache.hadoop.fs.Path file,
Schema schema,
parquet.hadoop.metadata.CompressionCodecName compressionCodecName,
int blockSize,
int pageSize)
Create a new TajoParquetWriter
|
TajoParquetWriter(org.apache.hadoop.fs.Path file,
Schema schema,
parquet.hadoop.metadata.CompressionCodecName compressionCodecName,
int blockSize,
int pageSize,
boolean enableDictionary,
boolean validating)
Create a new TajoParquetWriter.
|
public TajoParquetWriter(org.apache.hadoop.fs.Path file, Schema schema, parquet.hadoop.metadata.CompressionCodecName compressionCodecName, int blockSize, int pageSize) throws IOException
file
- The file name to write to.schema
- The Tajo schema of the table.compressionCodecName
- Compression codec to use, or
CompressionCodecName.UNCOMPRESSED.blockSize
- The block size threshold.pageSize
- See parquet write up. Blocks are subdivided into pages
for alignment.IOException
public TajoParquetWriter(org.apache.hadoop.fs.Path file, Schema schema, parquet.hadoop.metadata.CompressionCodecName compressionCodecName, int blockSize, int pageSize, boolean enableDictionary, boolean validating) throws IOException
file
- The file name to write to.schema
- The Tajo schema of the table.compressionCodecName
- Compression codec to use, or
CompressionCodecName.UNCOMPRESSED.blockSize
- The block size threshold.pageSize
- See parquet write up. Blocks are subdivided into pages
for alignment.enableDictionary
- Whether to use a dictionary to compress columns.validating
- Whether to turn on validation.IOException
public TajoParquetWriter(org.apache.hadoop.fs.Path file, Schema schema) throws IOException
file
- The Path of the file to write to.schema
- The Tajo schema of the table.IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.