org.apache.pig.impl.plan
Class RequiredFields

java.lang.Object
  extended by org.apache.pig.impl.plan.RequiredFields

public class RequiredFields
extends Object

A struct detailing how a projection is altered by an operator.


Constructor Summary
RequiredFields(boolean needAllFields)
           
RequiredFields(boolean needAllFields, boolean needNoFields)
           
RequiredFields(List<Pair<Integer,Integer>> fields)
           
 
Method Summary
 List<Pair<Integer,Integer>> getFields()
           
 boolean getNeedAllFields()
           
 boolean getNeedNoFields()
           
 boolean needAllFields()
           
 boolean needNoFields()
           
 void setFields(List<Pair<Integer,Integer>> fields)
           
 void setNeedAllFields(boolean needAllFields)
           
 void setNeedNoFields(boolean needNoFields)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequiredFields

public RequiredFields(boolean needAllFields)
Parameters:
needAllFields - to indicate if this required fields needs all the fields from its input

RequiredFields

public RequiredFields(boolean needAllFields,
                      boolean needNoFields)
Parameters:
needAllFields - to indicate if this required fields needs no fields from its input

RequiredFields

public RequiredFields(List<Pair<Integer,Integer>> fields)
Parameters:
fields - the list of input columns that are required
Method Detail

getFields

public List<Pair<Integer,Integer>> getFields()
Returns:
the list of input columns that are required

setFields

public void setFields(List<Pair<Integer,Integer>> fields)
Parameters:
fields - the list of input columns that are required

needAllFields

public boolean needAllFields()
Returns:
if this required fields needs all the fields from its input(s)

getNeedAllFields

public boolean getNeedAllFields()
Returns:
if this required fields needs all the fields from its input(s)

setNeedAllFields

public void setNeedAllFields(boolean needAllFields)
Parameters:
needAllFields - to indicate if this required fields needs all the fields from its input; cannot be true if needNoFields() is true

needNoFields

public boolean needNoFields()
Returns:
if this required fields needs no fields from its input(s)

getNeedNoFields

public boolean getNeedNoFields()
Returns:
if this required fields needs no fields from its input(s)

setNeedNoFields

public void setNeedNoFields(boolean needNoFields)
Parameters:
needNoFields - to indicate if this required fields needs no fields from its input; cannot be true if needAllFields() is true

toString

public String toString()
Overrides:
toString in class Object


Copyright © ${year} The Apache Software Foundation