public class AvroParquetWriter<T> extends ParquetWriter<T>
Modifier and Type | Class and Description |
---|---|
static class |
AvroParquetWriter.Builder<T> |
DEFAULT_BLOCK_SIZE, DEFAULT_COMPRESSION_CODEC_NAME, DEFAULT_IS_DICTIONARY_ENABLED, DEFAULT_IS_VALIDATING_ENABLED, DEFAULT_PAGE_SIZE, DEFAULT_WRITER_VERSION, MAX_PADDING_SIZE_DEFAULT, OBJECT_MODEL_NAME_PROP
Constructor and Description |
---|
AvroParquetWriter(org.apache.hadoop.fs.Path file,
org.apache.avro.Schema avroSchema)
Deprecated.
|
AvroParquetWriter(org.apache.hadoop.fs.Path file,
org.apache.avro.Schema avroSchema,
CompressionCodecName compressionCodecName,
int blockSize,
int pageSize)
Deprecated.
|
AvroParquetWriter(org.apache.hadoop.fs.Path file,
org.apache.avro.Schema avroSchema,
CompressionCodecName compressionCodecName,
int blockSize,
int pageSize,
boolean enableDictionary)
Deprecated.
|
AvroParquetWriter(org.apache.hadoop.fs.Path file,
org.apache.avro.Schema avroSchema,
CompressionCodecName compressionCodecName,
int blockSize,
int pageSize,
boolean enableDictionary,
org.apache.hadoop.conf.Configuration conf)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> AvroParquetWriter.Builder<T> |
builder(OutputFile file) |
static <T> AvroParquetWriter.Builder<T> |
builder(org.apache.hadoop.fs.Path file) |
close, getDataSize, getFooter, write
@Deprecated public AvroParquetWriter(org.apache.hadoop.fs.Path file, org.apache.avro.Schema avroSchema, CompressionCodecName compressionCodecName, int blockSize, int pageSize) throws IOException
AvroParquetWriter
.file
- a file pathavroSchema
- a schema for the writecompressionCodecName
- compression codecblockSize
- target block sizepageSize
- target page sizeIOException
- if there is an error while writing@Deprecated public AvroParquetWriter(org.apache.hadoop.fs.Path file, org.apache.avro.Schema avroSchema, CompressionCodecName compressionCodecName, int blockSize, int pageSize, boolean enableDictionary) throws IOException
AvroParquetWriter
.file
- The file name to write to.avroSchema
- The schema to write with.compressionCodecName
- Compression code to use, or CompressionCodecName.UNCOMPRESSEDblockSize
- the block size threshold.pageSize
- See parquet write up. Blocks are subdivided into pages for alignment and other purposes.enableDictionary
- Whether to use a dictionary to compress columns.IOException
- if there is an error while writing@Deprecated public AvroParquetWriter(org.apache.hadoop.fs.Path file, org.apache.avro.Schema avroSchema) throws IOException
AvroParquetWriter
. The default block size is 50 MB.The default
page size is 1 MB. Default compression is no compression. (Inherited from ParquetWriter
)file
- The file name to write to.avroSchema
- The schema to write with.IOException
- if there is an error while writing@Deprecated public AvroParquetWriter(org.apache.hadoop.fs.Path file, org.apache.avro.Schema avroSchema, CompressionCodecName compressionCodecName, int blockSize, int pageSize, boolean enableDictionary, org.apache.hadoop.conf.Configuration conf) throws IOException
AvroParquetWriter
.file
- The file name to write to.avroSchema
- The schema to write with.compressionCodecName
- Compression code to use, or CompressionCodecName.UNCOMPRESSEDblockSize
- the block size threshold.pageSize
- See parquet write up. Blocks are subdivided into pages for alignment and other purposes.enableDictionary
- Whether to use a dictionary to compress columns.conf
- The Configuration to use.IOException
- if there is an error while writingpublic static <T> AvroParquetWriter.Builder<T> builder(org.apache.hadoop.fs.Path file)
public static <T> AvroParquetWriter.Builder<T> builder(OutputFile file)
Copyright © 2019 The Apache Software Foundation. All rights reserved.