コード例 #1
0
ファイル: BooleanBlockReader.java プロジェクト: Rokum/presto
 @Override
 public void openRowGroup(StreamSources dataStreamSources) throws IOException {
   presentStream =
       dataStreamSources
           .getStreamSource(streamDescriptor, PRESENT, BooleanStream.class)
           .openStream();
   dataStream =
       dataStreamSources.getStreamSource(streamDescriptor, DATA, BooleanStream.class).openStream();
 }
コード例 #2
0
  @Override
  public void startRowGroup(StreamSources dataStreamSources) throws IOException {
    presentStreamSource =
        dataStreamSources.getStreamSource(streamDescriptor, PRESENT, BooleanStream.class);

    readOffset = 0;
    nextBatchSize = 0;

    presentStream = null;

    rowGroupOpen = false;

    for (StreamReader structField : structFields) {
      structField.startRowGroup(dataStreamSources);
    }
  }