Package org.apache.parquet.hadoop
Class BdecParquetWriter
- java.lang.Object
-
- org.apache.parquet.hadoop.BdecParquetWriter
-
- All Implemented Interfaces:
AutoCloseable
public class BdecParquetWriter extends Object implements AutoCloseable
BDEC specific parquet writer.Resides in parquet package because, it uses
InternalParquetRecordWriterandCodecFactorythat are package private.
-
-
Constructor Summary
Constructors Constructor Description BdecParquetWriter(ByteArrayOutputStream stream, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, String channelName, long maxChunkSizeInBytes, Optional<Integer> maxRowGroups, Constants.BdecParquetCompression bdecParquetCompression)Creates a BDEC specific parquet writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<Long>getRowCountsFromFooter()longgetRowsWritten()voidwriteRow(List<Object> row)
-
-
-
Constructor Detail
-
BdecParquetWriter
public BdecParquetWriter(ByteArrayOutputStream stream, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, String channelName, long maxChunkSizeInBytes, Optional<Integer> maxRowGroups, Constants.BdecParquetCompression bdecParquetCompression) throws IOException
Creates a BDEC specific parquet writer.- Parameters:
stream- outputschema- row schemaextraMetaData- extra metadatachannelName- name of the channel that is using the writermaxRowGroups- Optional cap on the max number of row groups to allow per file, if this is exceeded we'll end up throwing- Throws:
IOException
-
-
Method Detail
-
getRowCountsFromFooter
public List<Long> getRowCountsFromFooter()
- Returns:
- List of row counts per block stored in the parquet footer
-
getRowsWritten
public long getRowsWritten()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-