public class PythonSender<IN> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE_ARRAY |
static byte |
TYPE_KEY_VALUE |
static byte |
TYPE_VALUE_VALUE |
| Constructor and Description |
|---|
PythonSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasRemaining(int group) |
void |
open(String path) |
void |
reset()
Resets this object to the post-configuration state.
|
int |
sendBuffer(Iterator i,
int group)
Extracts records from an iterator and writes them to the memory-mapped file.
|
int |
sendRecord(Object value)
Writes a single record to the memory-mapped file.
|
public static final byte TYPE_ARRAY
public static final byte TYPE_KEY_VALUE
public static final byte TYPE_VALUE_VALUE
public void open(String path) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void reset()
public int sendRecord(Object value) throws IOException
value - record to sendIOExceptionpublic boolean hasRemaining(int group)
public int sendBuffer(Iterator i, int group) throws IOException
i - iterator containing recordsgroup - group to which the iterator belongs, most notably used by CoGroup-functions.IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.