Search in sources :

Example 1 with OutStream

use of org.apache.orc.impl.OutStream in project flink by apache.

the class PhysicalWriterImpl method writeBloomFilter.

@Override
public void writeBloomFilter(StreamName name, OrcProto.BloomFilterIndex.Builder bloom, CompressionCodec codec) throws IOException {
    OutputStream stream = new OutStream(this.toString(), bufferSize, codec, createDataStream(name));
    bloom.build().writeTo(stream);
    stream.flush();
}
Also used : OutputStream(java.io.OutputStream) FSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream) CodedOutputStream(com.google.protobuf.CodedOutputStream) OutStream(org.apache.orc.impl.OutStream)

Example 2 with OutStream

use of org.apache.orc.impl.OutStream in project flink by apache.

the class PhysicalWriterImpl method writeIndex.

@Override
public void writeIndex(StreamName name, OrcProto.RowIndex.Builder index, CompressionCodec codec) throws IOException {
    OutputStream stream = new OutStream(this.toString(), bufferSize, codec, createDataStream(name));
    index.build().writeTo(stream);
    stream.flush();
}
Also used : OutputStream(java.io.OutputStream) FSDataOutputStream(org.apache.flink.core.fs.FSDataOutputStream) CodedOutputStream(com.google.protobuf.CodedOutputStream) OutStream(org.apache.orc.impl.OutStream)

Aggregations

CodedOutputStream (com.google.protobuf.CodedOutputStream)2 OutputStream (java.io.OutputStream)2 FSDataOutputStream (org.apache.flink.core.fs.FSDataOutputStream)2 OutStream (org.apache.orc.impl.OutStream)2