public class PythonReceiver<OUT> extends Object implements Serializable
Constructor and Description |
---|
PythonReceiver(org.apache.flink.configuration.Configuration config,
boolean usesByteArray) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
collectBuffer(org.apache.flink.util.Collector<OUT> c,
int bufferSize)
Reads a buffer of the given size from the memory-mapped file, and collects all records contained.
|
static org.apache.flink.api.java.tuple.Tuple |
createTuple(int size) |
void |
open(File inputFile) |
public PythonReceiver(org.apache.flink.configuration.Configuration config, boolean usesByteArray)
public void open(File inputFile) throws IOException
IOException
public void close() throws IOException
IOException
public void collectBuffer(org.apache.flink.util.Collector<OUT> c, int bufferSize) throws IOException
c
- Collector to collect recordsbufferSize
- size of the bufferIOException
public static org.apache.flink.api.java.tuple.Tuple createTuple(int size)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.