Package parquet.hadoop.CodecFactory

Examples of parquet.hadoop.CodecFactory.BytesCompressor


import java.io.IOException;

public class ColumnChunkPageWriteStoreExposer {

  public static ColumnChunkPageWriteStore newColumnChunkPageWriteStore(CompressionCodecName codec, int pageSize, MessageType schema, int initialSize) {
    BytesCompressor compressor = new CodecFactory(new Configuration()).getCompressor(codec, pageSize);
    return new ColumnChunkPageWriteStore(compressor, schema, initialSize);
  }
View Full Code Here


  public static ColumnChunkPageWriteStore newColumnChunkPageWriteStore(OperatorContext oContext,
                                                                       CompressionCodecName codec,
                                                                       int pageSize,
                                                                       MessageType schema,
                                                                       int initialSize) {
    BytesCompressor compressor = new CodecFactory(new Configuration()).getCompressor(codec, pageSize);
    return new ColumnChunkPageWriteStore(compressor, schema, initialSize, new ParquetDirectByteBufferAllocator(oContext));
  }
View Full Code Here

  public static ColumnChunkPageWriteStore newColumnChunkPageWriteStore(OperatorContext oContext,
                                                                       CompressionCodecName codec,
                                                                       int pageSize,
                                                                       MessageType schema,
                                                                       int initialSize) {
    BytesCompressor compressor = new CodecFactory(new Configuration()).getCompressor(codec, pageSize);
    return new ColumnChunkPageWriteStore(compressor, schema, initialSize, new ParquetDirectByteBufferAllocator(oContext));
  }
View Full Code Here

TOP

Related Classes of parquet.hadoop.CodecFactory.BytesCompressor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.