.build(); case CHAR: return CharStreamReader.builder() .setColumnIndex(columnIndex) .setMaxLength(columnType.getMaxLength())
.build(); case CHAR: return CharStreamReader.builder() .setColumnIndex(columnIndex) .setMaxLength(columnType.getMaxLength())
public CharStreamReader 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 CharStreamReader(columnIndex, maxLength, present, data, length, dictionary, isFileCompressed, columnEncoding, vectors); }
public CharStreamReader 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 CharStreamReader(columnIndex, maxLength, present, data, length, dictionary, isFileCompressed, columnEncoding, 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]); }