@InterfaceAudience.Public
public class OrderedPartitionedKVOutput
extends org.apache.tez.runtime.api.AbstractLogicalOutput
OrderedPartitionedKVOutput is an AbstractLogicalOutput which sorts
key/value pairs written to it. It also partitions the output based on a
Partitioner| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected MemoryUpdateCallbackHandler |
memoryUpdateCallbackHandler |
protected org.apache.tez.runtime.library.common.sort.impl.ExternalSorter |
sorter |
| Constructor and Description |
|---|
OrderedPartitionedKVOutput(org.apache.tez.runtime.api.OutputContext outputContext,
int numPhysicalOutputs) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.tez.runtime.api.Event> |
close() |
protected List<org.apache.tez.runtime.api.Event> |
generateEventsOnClose() |
KeyValuesWriter |
getWriter() |
void |
handleEvents(List<org.apache.tez.runtime.api.Event> outputEvents) |
List<org.apache.tez.runtime.api.Event> |
initialize() |
void |
start() |
protected org.apache.tez.runtime.library.common.sort.impl.ExternalSorter sorter
protected org.apache.hadoop.conf.Configuration conf
protected MemoryUpdateCallbackHandler memoryUpdateCallbackHandler
public OrderedPartitionedKVOutput(org.apache.tez.runtime.api.OutputContext outputContext,
int numPhysicalOutputs)
public List<org.apache.tez.runtime.api.Event> initialize() throws IOException
initialize in interface org.apache.tez.runtime.api.OutputFrameworkInterfaceinitialize in class org.apache.tez.runtime.api.AbstractLogicalOutputIOExceptionpublic KeyValuesWriter getWriter() throws IOException
IOExceptionpublic void handleEvents(List<org.apache.tez.runtime.api.Event> outputEvents)
public List<org.apache.tez.runtime.api.Event> close() throws IOException
IOExceptionprotected List<org.apache.tez.runtime.api.Event> generateEventsOnClose() throws IOException
IOExceptionCopyright © 2015 Apache Software Foundation. All rights reserved.