public class PythonReceiver<OUT> extends Object implements Serializable
Constructor and Description |
---|
PythonReceiver(Configuration config,
boolean usesByteArray) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
collectBuffer(Collector<OUT> 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(File inputFile) |
public PythonReceiver(Configuration config, boolean usesByteArray)
public void open(File inputFile) throws IOException
IOException
public void close() throws IOException
IOException
public void collectBuffer(Collector<OUT> c, int bufferSize) throws IOException
c
- Collector to collect recordsbufferSize
- size of the bufferIOException
public static Tuple createTuple(int size)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.