public class PythonReceiver extends Object implements Serializable
Constructor and Description |
---|
PythonReceiver(boolean usesByteArray) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
collectBuffer(Collector c,
int bufferSize)
Reads a buffer of the given size from the memory-mapped file, and collects all records contained.
|
static Tuple |
createTuple(int size) |
void |
open(String path) |
public void open(String path) throws IOException
IOException
public void close() throws IOException
IOException
public void collectBuffer(Collector c, int bufferSize) throws IOException
c
- Collector to collect recordsbufferSize
- size of the bufferIOException
public static Tuple createTuple(int size)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.