org.apache.pig.impl.eval
Class ProjectSpec

java.lang.Object
  extended by org.apache.pig.impl.eval.EvalSpec
      extended by org.apache.pig.impl.eval.SimpleEvalSpec
          extended by org.apache.pig.impl.eval.ProjectSpec
All Implemented Interfaces:
Serializable

public class ProjectSpec
extends SimpleEvalSpec

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.impl.eval.EvalSpec
EvalSpec.UserComparator
 
Field Summary
protected  List<Integer> cols
           
protected  boolean wrapInTuple
           
 
Fields inherited from class org.apache.pig.impl.eval.EvalSpec
inner, properties
 
Constructor Summary
ProjectSpec(int col)
           
ProjectSpec(List<Integer> cols)
           
 
Method Summary
protected  Datum eval(Datum d)
           
 int getCol()
           
 int getCol(int i)
           
 List<Integer> getCols()
           
 List<String> getFuncs()
          Get the functions required by this spec
protected  Schema mapInputSchema(Schema schema)
          Given an input schema, determine the output schema of this spec as it operates on input tuples with the input schema.
 int numCols()
           
 void setWrapInTuple(boolean wrapInTuple)
           
 String toString()
           
 void visit(EvalSpecVisitor v)
           
 
Methods inherited from class org.apache.pig.impl.eval.SimpleEvalSpec
setupDefaultPipe
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cols

protected List<Integer> cols

wrapInTuple

protected boolean wrapInTuple
Constructor Detail

ProjectSpec

public ProjectSpec(List<Integer> cols)

ProjectSpec

public ProjectSpec(int col)
Method Detail

getCols

public List<Integer> getCols()

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:

eval

protected Datum eval(Datum d)
Specified by:
eval in class SimpleEvalSpec

toString

public String toString()
Overrides:
toString in class Object

numCols

public int numCols()

getCol

public int getCol(int i)

getCol

public int getCol()

setWrapInTuple

public void setWrapInTuple(boolean wrapInTuple)

visit

public void visit(EvalSpecVisitor v)
Specified by:
visit in class EvalSpec


Copyright © ${year} The Apache Software Foundation