public class CoRecordReader<T1 extends org.apache.flink.core.io.IOReadableWritable,T2 extends org.apache.flink.core.io.IOReadableWritable> extends org.apache.flink.runtime.io.network.api.reader.AbstractReader implements org.apache.flink.runtime.util.event.EventListener<org.apache.flink.runtime.io.network.partition.consumer.InputGate>, StreamingReader
MutableRecordReaders of two different input
types to read records effectively.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.streaming.runtime.io.CoRecordReader.CoBarrierBuffer |
barrierBuffer1 |
protected org.apache.flink.streaming.runtime.io.CoRecordReader.CoBarrierBuffer |
barrierBuffer2 |
| Constructor and Description |
|---|
CoRecordReader(org.apache.flink.runtime.io.network.partition.consumer.InputGate inputgate1,
org.apache.flink.runtime.io.network.partition.consumer.InputGate inputgate2) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToAvailable(org.apache.flink.runtime.io.network.partition.consumer.InputGate bufferReader) |
void |
cleanup() |
void |
clearBuffers() |
protected int |
getNextReaderIndexBlocking() |
protected int |
getNextRecord(T1 target1,
T2 target2) |
void |
onEvent(org.apache.flink.runtime.io.network.partition.consumer.InputGate bufferReader) |
void |
requestPartitionsOnce() |
protected org.apache.flink.streaming.runtime.io.CoRecordReader.CoBarrierBuffer barrierBuffer1
protected org.apache.flink.streaming.runtime.io.CoRecordReader.CoBarrierBuffer barrierBuffer2
public CoRecordReader(org.apache.flink.runtime.io.network.partition.consumer.InputGate inputgate1,
org.apache.flink.runtime.io.network.partition.consumer.InputGate inputgate2)
public void requestPartitionsOnce()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected int getNextRecord(T1 target1, T2 target2) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected int getNextReaderIndexBlocking()
throws InterruptedException
InterruptedExceptionpublic void onEvent(org.apache.flink.runtime.io.network.partition.consumer.InputGate bufferReader)
onEvent in interface org.apache.flink.runtime.util.event.EventListener<org.apache.flink.runtime.io.network.partition.consumer.InputGate>protected void addToAvailable(org.apache.flink.runtime.io.network.partition.consumer.InputGate bufferReader)
public void clearBuffers()
public void cleanup()
throws IOException
cleanup in interface StreamingReaderIOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.