public class PythonReceiver extends Object implements Serializable
| Constructor and Description |
|---|
PythonReceiver(boolean usesByteArray) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collectBuffer(org.apache.flink.util.Collector 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(String path) |
public void open(String path) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void collectBuffer(org.apache.flink.util.Collector c,
int bufferSize)
throws IOException
c - Collector to collect recordsbufferSize - size of the bufferIOExceptionpublic static org.apache.flink.api.java.tuple.Tuple createTuple(int size)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.