use of com.facebook.presto.orc.metadata.ColumnEncoding.ColumnEncodingKind in project presto by prestodb.
the class LongStreamReader method startStripe.
@Override
public void startStripe(StreamSources dictionaryStreamSources, List<ColumnEncoding> encoding) throws IOException {
ColumnEncodingKind kind = encoding.get(streamDescriptor.getStreamId()).getColumnEncodingKind();
if (kind == DIRECT || kind == DIRECT_V2 || kind == DWRF_DIRECT) {
currentReader = directReader;
} else if (kind == DICTIONARY) {
currentReader = dictionaryReader;
} else {
throw new IllegalArgumentException("Unsupported encoding " + kind);
}
currentReader.startStripe(dictionaryStreamSources, encoding);
}
Aggregations