.build(); case STRING: return StringStreamReader.builder() .setColumnIndex(columnIndex) .setPresentStream(present)
.build(); case STRING: return StringStreamReader.builder() .setColumnIndex(columnIndex) .setPresentStream(present)
public StringStreamReader build() throws IOException { SettableUncompressedStream present = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.PRESENT.name(), presentStream); SettableUncompressedStream data = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.DATA.name(), dataStream); SettableUncompressedStream length = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.LENGTH.name(), lengthStream); SettableUncompressedStream dictionary = StreamUtils.createSettableUncompressedStream( OrcProto.Stream.Kind.DICTIONARY_DATA.name(), dictionaryStream); boolean isFileCompressed = compressionCodec != null; return new StringStreamReader(columnIndex, present, data, length, dictionary, isFileCompressed, columnEncoding, context, vectors); }
public StringStreamReader build() throws IOException { SettableUncompressedStream present = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.PRESENT.name(), presentStream); SettableUncompressedStream data = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.DATA.name(), dataStream); SettableUncompressedStream length = StreamUtils .createSettableUncompressedStream(OrcProto.Stream.Kind.LENGTH.name(), lengthStream); SettableUncompressedStream dictionary = StreamUtils.createSettableUncompressedStream( OrcProto.Stream.Kind.DICTIONARY_DATA.name(), dictionaryStream); boolean isFileCompressed = compressionCodec != null; return new StringStreamReader(columnIndex, present, data, length, dictionary, isFileCompressed, columnEncoding, context, vectors); }
@Override public void seek(PositionProvider[] index) throws IOException { // This string reader should simply redirect to its own seek (what other types already do). this.seek(index[columnId]); }
@Override public void seek(PositionProvider[] index) throws IOException { // This string reader should simply redirect to its own seek (what other types already do). this.seek(index[columnId]); }