Class ParquetRewriter
- java.lang.Object
-
- org.apache.parquet.hadoop.rewrite.ParquetRewriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ParquetRewriter extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description static StringORIGINAL_CREATED_BY_KEY
-
Constructor Summary
Constructors Constructor Description ParquetRewriter(RewriteOptions options)ParquetRewriter(CompressionConverter.TransParquetFileReader reader, ParquetFileWriter writer, ParquetMetadata meta, org.apache.parquet.schema.MessageType schema, String originalCreatedBy, org.apache.parquet.hadoop.metadata.CompressionCodecName codecName, List<String> maskColumns, MaskMode maskMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidprocessBlocks()org.apache.parquet.bytes.BytesInputreadBlock(int length, CompressionConverter.TransParquetFileReader reader)org.apache.parquet.bytes.BytesInputreadBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader)
-
-
-
Field Detail
-
ORIGINAL_CREATED_BY_KEY
public static final String ORIGINAL_CREATED_BY_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParquetRewriter
public ParquetRewriter(RewriteOptions options) throws IOException
- Throws:
IOException
-
ParquetRewriter
public ParquetRewriter(CompressionConverter.TransParquetFileReader reader, ParquetFileWriter writer, ParquetMetadata meta, org.apache.parquet.schema.MessageType schema, String originalCreatedBy, org.apache.parquet.hadoop.metadata.CompressionCodecName codecName, List<String> maskColumns, MaskMode maskMode)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
processBlocks
public void processBlocks() throws IOException- Throws:
IOException
-
readBlock
public org.apache.parquet.bytes.BytesInput readBlock(int length, CompressionConverter.TransParquetFileReader reader) throws IOException- Throws:
IOException
-
readBlockAllocate
public org.apache.parquet.bytes.BytesInput readBlockAllocate(int length, CompressionConverter.TransParquetFileReader reader) throws IOException- Throws:
IOException
-
-