@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
IOException
public static <K,V> NativeCollectorOnlyHandler<K,V> create(TaskContext context) throws IOException
IOException
public void collect(K key, V value, int partition) throws IOException
IOException
public void flush() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public ReadWriteBuffer onCall(Command command, ReadWriteBuffer parameter) throws IOException
onCall
in interface CommandDispatcher
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.