org.apache.pig.impl.eval
Class StreamSpec
java.lang.Object
org.apache.pig.impl.eval.EvalSpec
org.apache.pig.impl.eval.StreamSpec
- All Implemented Interfaces:
- Serializable
public class StreamSpec
- extends EvalSpec
- See Also:
- Serialized Form
Methods inherited from class org.apache.pig.impl.eval.EvalSpec |
addSpec, copy, finish, getCombiner, getComparator, getComparatorName, getLineage, getOutputSchemaForPipe, getProperties, instantiateFunc, isAsynchronous, isFlattened, isInner, setComparatorName, setFlatten, setInner, setLineageTracer, setSchema, setupPipe, simpleEval |
StreamSpec
public StreamSpec(ExecutableManager executableManager,
StreamingCommand command)
getCommand
public StreamingCommand getCommand()
- Get the
StreamingCommand
for this StreamSpec
.
- Returns:
- the
StreamingCommand
for this StreamSpec
setOptimizedSpec
public void setOptimizedSpec(StreamingCommand.Handle handle,
String spec)
- Set the optimized
StreamingCommand.HandleSpec
for the given StreamingCommand.Handle
of the
StreamSpec
.
- Parameters:
handle
- Handle
to optimizespec
- optimized specification for the handle
revertOptimizedCommand
public void revertOptimizedCommand(StreamingCommand.Handle handle)
- Revert the optimized
StreamingCommand
for this
StreamSpec
.
getFuncs
public List<String> getFuncs()
- Description copied from class:
EvalSpec
- Get the functions required by this spec
- Specified by:
getFuncs
in class EvalSpec
- Returns:
mapInputSchema
protected Schema mapInputSchema(Schema schema)
- Description copied from class:
EvalSpec
- Given an input schema, determine the output schema of this spec
as it operates on input tuples with the input schema.
- Specified by:
mapInputSchema
in class EvalSpec
- Returns:
setupDefaultPipe
protected DataCollector setupDefaultPipe(Properties properties,
DataCollector endOfPipe)
- Description copied from class:
EvalSpec
- set up a default data processing pipe for processing by this spec
This pipe does not include unflattening/flattening at the end
- Specified by:
setupDefaultPipe
in class EvalSpec
- Parameters:
properties
- properties for the pipeendOfPipe
- The collector where output is desired
- Returns:
- The collector where input tuples should be put
visit
public void visit(EvalSpecVisitor v)
- Specified by:
visit
in class EvalSpec
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © ${year} The Apache Software Foundation