use of com.facebook.presto.orc.stream.InputStreamSources in project presto by prestodb.
the class SliceDictionarySelectiveReader method startStripe.
@Override
public void startStripe(Stripe stripe) {
InputStreamSources dictionaryStreamSources = stripe.getDictionaryStreamSources();
stripeDictionaryDataStreamSource = dictionaryStreamSources.getInputStreamSource(streamDescriptor, DICTIONARY_DATA, ByteArrayInputStream.class);
stripeDictionaryLengthStreamSource = dictionaryStreamSources.getInputStreamSource(streamDescriptor, LENGTH, LongInputStream.class);
stripeDictionarySize = stripe.getColumnEncodings().get(streamDescriptor.getStreamId()).getColumnEncoding(streamDescriptor.getSequence()).getDictionarySize();
stripeDictionaryOpen = false;
presentStreamSource = missingStreamSource(BooleanInputStream.class);
dataStreamSource = missingStreamSource(LongInputStream.class);
inDictionaryStreamSource = missingStreamSource(BooleanInputStream.class);
rowGroupDictionaryLengthStreamSource = missingStreamSource(RowGroupDictionaryLengthInputStream.class);
rowGroupDictionaryDataStreamSource = missingStreamSource(ByteArrayInputStream.class);
readOffset = 0;
presentStream = null;
inDictionaryStream = null;
dataStream = null;
rowGroupOpen = false;
}
use of com.facebook.presto.orc.stream.InputStreamSources in project presto by prestodb.
the class SliceDictionaryBatchStreamReader method startStripe.
@Override
public void startStripe(Stripe stripe) {
InputStreamSources dictionaryStreamSources = stripe.getDictionaryStreamSources();
stripeDictionaryDataStreamSource = dictionaryStreamSources.getInputStreamSource(streamDescriptor, DICTIONARY_DATA, ByteArrayInputStream.class);
stripeDictionaryLengthStreamSource = dictionaryStreamSources.getInputStreamSource(streamDescriptor, LENGTH, LongInputStream.class);
stripeDictionarySize = stripe.getColumnEncodings().get(streamDescriptor.getStreamId()).getColumnEncoding(streamDescriptor.getSequence()).getDictionarySize();
stripeDictionaryOpen = false;
presentStreamSource = missingStreamSource(BooleanInputStream.class);
dataStreamSource = missingStreamSource(LongInputStream.class);
inDictionaryStreamSource = missingStreamSource(BooleanInputStream.class);
rowGroupDictionaryLengthStreamSource = missingStreamSource(RowGroupDictionaryLengthInputStream.class);
rowGroupDictionaryDataStreamSource = missingStreamSource(ByteArrayInputStream.class);
readOffset = 0;
nextBatchSize = 0;
presentStream = null;
inDictionaryStream = null;
dataStream = null;
rowGroupOpen = false;
}
Aggregations