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