/** * {@inheritDoc} * @see org.apache.parquet.column.values.ValuesWriter#reset() */ @Override public void reset() { out.reset(); init(); }
/** * {@inheritDoc} * @see org.apache.parquet.column.values.ValuesWriter#reset() */ @Override public void reset() { out.reset(); init(); }
/** * @param bound the maximum value stored by this column * @param initialCapacity initial capacity for the writer * @param pageSize the page size * @param allocator a buffer allocator */ public BitPackingValuesWriter(int bound, int initialCapacity, int pageSize, ByteBufferAllocator allocator) { this.bitsPerValue = getWidthFromMaxInt(bound); this.out = new CapacityByteArrayOutputStream(initialCapacity, pageSize, allocator); init(); }
/** * @param bound the maximum value stored by this column * @param initialCapacity initial capacity for the writer * @param pageSize the page size * @param allocator a buffer allocator */ public BitPackingValuesWriter(int bound, int initialCapacity, int pageSize, ByteBufferAllocator allocator) { this.bitsPerValue = getWidthFromMaxInt(bound); this.out = new CapacityByteArrayOutputStream(initialCapacity, pageSize, allocator); init(); }