public class ParquetWriter<T> extends Object implements Closeable
NOTE: The file was copied and modified to reduce hadoop dependencies.
Modifier and Type | Class and Description |
---|---|
static class |
ParquetWriter.Builder<T,SELF extends ParquetWriter.Builder<T,SELF>>
An abstract builder class for ParquetWriter instances.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BLOCK_SIZE |
static org.apache.parquet.hadoop.metadata.CompressionCodecName |
DEFAULT_COMPRESSION_CODEC_NAME |
static boolean |
DEFAULT_IS_DICTIONARY_ENABLED |
static boolean |
DEFAULT_IS_VALIDATING_ENABLED |
static int |
DEFAULT_PAGE_SIZE |
static org.apache.parquet.column.ParquetProperties.WriterVersion |
DEFAULT_WRITER_VERSION |
static int |
MAX_PADDING_SIZE_DEFAULT |
static String |
OBJECT_MODEL_NAME_PROP |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getDataSize() |
org.apache.parquet.hadoop.metadata.ParquetMetadata |
getFooter() |
void |
write(T object) |
public static final int DEFAULT_BLOCK_SIZE
public static final int DEFAULT_PAGE_SIZE
public static final org.apache.parquet.hadoop.metadata.CompressionCodecName DEFAULT_COMPRESSION_CODEC_NAME
public static final boolean DEFAULT_IS_DICTIONARY_ENABLED
public static final boolean DEFAULT_IS_VALIDATING_ENABLED
public static final org.apache.parquet.column.ParquetProperties.WriterVersion DEFAULT_WRITER_VERSION
public static final String OBJECT_MODEL_NAME_PROP
public static final int MAX_PADDING_SIZE_DEFAULT
public void write(T object) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public org.apache.parquet.hadoop.metadata.ParquetMetadata getFooter()
public long getDataSize()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.