org.apache.pig.impl.eval
Class GenerateSpec
java.lang.Object
org.apache.pig.impl.eval.EvalSpec
org.apache.pig.impl.eval.GenerateSpec
- All Implemented Interfaces:
- Serializable
public class GenerateSpec
- 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, isFlattened, isInner, setComparatorName, setFlatten, setInner, setLineageTracer, setSchema, setupPipe, simpleEval |
specs
protected List<EvalSpec> specs
driver
protected int driver
GenerateSpec
public GenerateSpec(List<EvalSpec> specs)
GenerateSpec
public GenerateSpec(EvalSpec col)
getGroupBySpec
public GenerateSpec getGroupBySpec()
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
toString
public String toString()
- Overrides:
toString
in class Object
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 TupleSchema mapInputSchema(Schema input)
- 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:
isAsynchronous
public boolean isAsynchronous()
- Description copied from class:
EvalSpec
- Some specs may be asynchronous, i.e., they return before completing the processing fully.
The default value is false, may be overridden to return true
- Overrides:
isAsynchronous
in class EvalSpec
instantiateFunc
public void instantiateFunc(FunctionInstantiator instantiaor)
throws IOException
- Overrides:
instantiateFunc
in class EvalSpec
- Throws:
IOException
getSpecs
public List<EvalSpec> getSpecs()
visit
public void visit(EvalSpecVisitor v)
- Specified by:
visit
in class EvalSpec
Copyright © ${year} The Apache Software Foundation