use of com.facebook.presto.orc.stream.ByteArrayOutputStream in project presto by prestodb.
the class SliceDictionaryColumnWriter method resetDictionary.
@Override
protected void resetDictionary() {
columnEncoding = null;
dictionary = new SliceDictionaryBuilder(EXPECTED_ENTRIES);
dictionaryDataStream = new ByteArrayOutputStream(columnWriterOptions, dwrfEncryptor, Stream.StreamKind.DICTIONARY_DATA);
dictionaryLengthStream = createLengthOutputStream(columnWriterOptions, dwrfEncryptor, orcEncoding);
statisticsBuilder = newStringStatisticsBuilder();
}
Aggregations