public abstract class PythonSender extends Object implements Serializable
限定符和类型 | 类和说明 |
---|---|
protected static class |
PythonSender.Serializer<T>
Interface for all serializers used by
PythonSender classes to write container objects. |
限定符和类型 | 字段和说明 |
---|---|
static byte |
TYPE_ARRAY |
static byte |
TYPE_KEY_VALUE |
static byte |
TYPE_VALUE_VALUE |
限定符 | 构造器和说明 |
---|---|
protected |
PythonSender(org.apache.flink.configuration.Configuration config) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
protected <IN> PythonSender.Serializer<IN> |
getSerializer(IN value) |
void |
open(File outputFile) |
protected <IN> int |
sendBuffer(org.apache.flink.python.api.streaming.data.SingleElementPushBackIterator<IN> input,
PythonSender.Serializer<IN> serializer)
Extracts records from an iterator and writes them 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(File outputFile) throws IOException
IOException
public void close() throws IOException
IOException
protected <IN> int sendBuffer(org.apache.flink.python.api.streaming.data.SingleElementPushBackIterator<IN> input, PythonSender.Serializer<IN> serializer) throws IOException
input
- iterator containing recordsserializer
- serializer for the input recordsIOException
protected <IN> PythonSender.Serializer<IN> getSerializer(IN value)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.