public interface Target
Target represents the output destination of a Crunch PCollection
in the context of a Crunch job.| Modifier and Type | Interface and Description |
|---|---|
static class |
Target.WriteMode
An enum to represent different options the client may specify
for handling the case where the output path, table, etc.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(OutputHandler handler,
PType<?> ptype)
Checks to see if this
Target instance is compatible with the
given PType. |
<T> SourceTarget<T> |
asSourceTarget(PType<T> ptype)
Attempt to create the
SourceTarget type that corresponds to this Target
for the given PType, if possible. |
void |
handleExisting(Target.WriteMode writeMode,
org.apache.hadoop.conf.Configuration conf)
Apply the given
WriteMode to this Target instance. |
void handleExisting(Target.WriteMode writeMode, org.apache.hadoop.conf.Configuration conf)
WriteMode to this Target instance.writeMode - The strategy for handling existing outputsconf - The ever-useful Configuration instanceboolean accept(OutputHandler handler, PType<?> ptype)
Target instance is compatible with the
given PType.handler - The OutputHandler that is managing the output for the jobptype - The PType to checkPType,
false otherwise<T> SourceTarget<T> asSourceTarget(PType<T> ptype)
SourceTarget type that corresponds to this Target
for the given PType, if possible. If it is not possible, return null.ptype - The PType to use in constructing the SourceTargetSourceTarget or null if such a SourceTarget does not existCopyright © 2013 The Apache Software Foundation. All Rights Reserved.