public static final HeapByteBufferAllocator getInstance(){ return new HeapByteBufferAllocator();}
public static final HeapByteBufferAllocator getInstance(){ return new HeapByteBufferAllocator();}
/** * @param initialSlabSize the size to make the first slab * @param maxCapacityHint a hint (not guarantee) of the max amount of data written to this stream * @deprecated use {@link CapacityByteArrayOutputStream#CapacityByteArrayOutputStream(int, int, ByteBufferAllocator)} */ @Deprecated public CapacityByteArrayOutputStream(int initialSlabSize, int maxCapacityHint) { this(initialSlabSize, maxCapacityHint, new HeapByteBufferAllocator()); }
/** * Defaults maxCapacityHint to 1MB * @param initialSlabSize an initial slab size * @deprecated use {@link CapacityByteArrayOutputStream#CapacityByteArrayOutputStream(int, int, ByteBufferAllocator)} */ @Deprecated public CapacityByteArrayOutputStream(int initialSlabSize) { this(initialSlabSize, 1024 * 1024, new HeapByteBufferAllocator()); }
/** * @param initialSlabSize the size to make the first slab * @param maxCapacityHint a hint (not guarantee) of the max amount of data written to this stream * @deprecated use {@link CapacityByteArrayOutputStream#CapacityByteArrayOutputStream(int, int, ByteBufferAllocator)} */ @Deprecated public CapacityByteArrayOutputStream(int initialSlabSize, int maxCapacityHint) { this(initialSlabSize, maxCapacityHint, new HeapByteBufferAllocator()); }
/** * Defaults maxCapacityHint to 1MB * @param initialSlabSize an initial slab size * @deprecated use {@link CapacityByteArrayOutputStream#CapacityByteArrayOutputStream(int, int, ByteBufferAllocator)} */ @Deprecated public CapacityByteArrayOutputStream(int initialSlabSize) { this(initialSlabSize, 1024 * 1024, new HeapByteBufferAllocator()); }
public static CapacityByteArrayOutputStream withTargetNumSlabs( int minSlabSize, int maxCapacityHint, int targetNumSlabs) { return withTargetNumSlabs(minSlabSize, maxCapacityHint, targetNumSlabs, new HeapByteBufferAllocator()); }
public static CapacityByteArrayOutputStream withTargetNumSlabs( int minSlabSize, int maxCapacityHint, int targetNumSlabs) { return withTargetNumSlabs(minSlabSize, maxCapacityHint, targetNumSlabs, new HeapByteBufferAllocator()); }
public int merge(List<InputFile> inputFiles, CodecFactory.BytesCompressor compressor, String createdBy, long maxBlockSize) throws IOException { List<ParquetFileReader> readers = getReaders(inputFiles); try { ByteBufferAllocator allocator = new HeapByteBufferAllocator(); ColumnReadStoreImpl columnReadStore = new ColumnReadStoreImpl(null, new DummyRecordConverter(schema).getRootConverter(), schema, createdBy); this.start();