org.apache.pig.impl.eval
Class SortDistinctSpec

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

public class SortDistinctSpec
extends EvalSpec

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pig.impl.eval.EvalSpec
EvalSpec.UserComparator
 
Field Summary
protected  boolean eliminateDuplicates
           
protected  EvalSpec sortSpec
           
 
Fields inherited from class org.apache.pig.impl.eval.EvalSpec
inner, properties
 
Constructor Summary
SortDistinctSpec(boolean eliminateDuplicates, EvalSpec sortSpec)
           
 
Method Summary
 boolean distinct()
           
 List<String> getFuncs()
          Get the functions required by this spec
 EvalSpec getSortSpec()
           
 void instantiateFunc(FunctionInstantiator instantiaor)
           
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.
protected  DataCollector setupDefaultPipe(Properties properties, DataCollector endOfPipe)
          set up a default data processing pipe for processing by this spec This pipe does not include unflattening/flattening at the end
 String toString()
           
 void visit(EvalSpecVisitor v)
           
 
Methods inherited from class org.apache.pig.impl.eval.EvalSpec
addSpec, copy, finish, getCombiner, getComparator, getComparatorName, getLineage, getOutputSchemaForPipe, getProperties, 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

sortSpec

protected EvalSpec sortSpec

eliminateDuplicates

protected boolean eliminateDuplicates
Constructor Detail

SortDistinctSpec

public SortDistinctSpec(boolean eliminateDuplicates,
                        EvalSpec sortSpec)
Method Detail

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 pipe
endOfPipe - The collector where output is desired
Returns:
The collector where input tuples should be put

toString

public String toString()
Overrides:
toString in class Object

instantiateFunc

public void instantiateFunc(FunctionInstantiator instantiaor)
                     throws IOException
Overrides:
instantiateFunc in class EvalSpec
Throws:
IOException

visit

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

getSortSpec

public EvalSpec getSortSpec()

distinct

public boolean distinct()


Copyright © ${year} The Apache Software Foundation