@InterfaceAudience.Private public class NativeCollectorOnlyHandler<K,V> extends Object implements CommandDispatcher, Closeable
| Modifier and Type | Field and Description |
|---|---|
static Command |
GET_COMBINE_HANDLER |
static Command |
GET_OUTPUT_INDEX_PATH |
static Command |
GET_OUTPUT_PATH |
static Command |
GET_SPILL_PATH |
static String |
NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
NativeCollectorOnlyHandler(TaskContext context,
INativeHandler nativeHandler,
BufferPusher<K,V> kvPusher,
ICombineHandler combiner) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
collect(K key,
V value,
int partition) |
static <K,V> NativeCollectorOnlyHandler<K,V> |
create(TaskContext context) |
void |
flush() |
ReadWriteBuffer |
onCall(Command command,
ReadWriteBuffer parameter) |
public static final String NAME
public static final Command GET_OUTPUT_PATH
public static final Command GET_OUTPUT_INDEX_PATH
public static final Command GET_SPILL_PATH
public static final Command GET_COMBINE_HANDLER
protected NativeCollectorOnlyHandler(TaskContext context, INativeHandler nativeHandler, BufferPusher<K,V> kvPusher, ICombineHandler combiner) throws IOException
IOExceptionpublic static <K,V> NativeCollectorOnlyHandler<K,V> create(TaskContext context) throws IOException
IOExceptionpublic void collect(K key, V value, int partition) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ReadWriteBuffer onCall(Command command, ReadWriteBuffer parameter) throws IOException
onCall in interface CommandDispatcherIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.