Search in sources :

Example 1 with ByteArrayOutputStream

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();
}
Also used : ByteArrayOutputStream(com.facebook.presto.orc.stream.ByteArrayOutputStream)

Aggregations

ByteArrayOutputStream (com.facebook.presto.orc.stream.ByteArrayOutputStream)1