org.apache.pig.newplan.logical.relational
Class LOStore

java.lang.Object
  extended by org.apache.pig.newplan.Operator
      extended by org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
          extended by org.apache.pig.newplan.logical.relational.LOStore

public class LOStore
extends LogicalRelationalOperator


Field Summary
 
Fields inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
alias, lineNum, mCustomPartitioner, mPinnedOptions, requestedParallelism, schema
 
Fields inherited from class org.apache.pig.newplan.Operator
annotations, hashPrime, location, name, plan
 
Constructor Summary
LOStore(LogicalPlan plan)
           
LOStore(LogicalPlan plan, FileSpec outputFileSpec)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
static String constructSignature(String alias, String filename, FuncSpec funcSpec)
           
 FileSpec getFileSpec()
           
 FileSpec getInputSpec()
           
 FileSpec getOutputSpec()
           
 LogicalSchema getSchema()
          Get the schema for the output of this relational operator.
 String getSignature()
           
 SortInfo getSortInfo()
           
 StoreFuncInterface getStoreFunc()
           
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 boolean isTmpStore()
           
 void setAlias(String alias)
           
 void setInputSpec(FileSpec in)
           
 void setSignature(String sig)
           
 void setSortInfo(SortInfo sortInfo)
           
 void setTmpStore(boolean isTmpStore)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalOperator
checkEquality, getAlias, getCustomPartitioner, getLineNumber, getRequestedParallelisam, isPinnedOption, neverUseForRealSetSchema, pinOption, resetSchema, resetUid, setCustomPartitioner, setRequestedParallelism, setSchema, toString
 
Methods inherited from class org.apache.pig.newplan.Operator
annotate, getAnnotation, getLocation, getName, getPlan, removeAnnotation, setLocation, setPlan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LOStore

public LOStore(LogicalPlan plan)

LOStore

public LOStore(LogicalPlan plan,
               FileSpec outputFileSpec)
Method Detail

getOutputSpec

public FileSpec getOutputSpec()

getStoreFunc

public StoreFuncInterface getStoreFunc()

getSchema

public LogicalSchema getSchema()
                        throws FrontendException
Description copied from class: LogicalRelationalOperator
Get the schema for the output of this relational operator. This does not merely return the schema variable. If schema is not yet set, this will attempt to construct it. Therefore it is abstract since each operator will need to construct its schema differently.

Specified by:
getSchema in class LogicalRelationalOperator
Returns:
the schema
Throws:
FrontendException

accept

public void accept(PlanVisitor v)
            throws FrontendException
Description copied from class: Operator
Accept a visitor at this node in the graph.

Specified by:
accept in class Operator
Parameters:
v - Visitor to accept.
Throws:
FrontendException

isEqual

public boolean isEqual(Operator other)
                throws FrontendException
Description copied from class: Operator
This is like a shallow equals comparison. It returns true if two operators have equivalent properties even if they are different objects. Here properties mean equivalent plan and equivalent name.

Specified by:
isEqual in class Operator
Returns:
true if two object have equivalent properties, else false
Throws:
FrontendException

getSortInfo

public SortInfo getSortInfo()

setSortInfo

public void setSortInfo(SortInfo sortInfo)

isTmpStore

public boolean isTmpStore()

setTmpStore

public void setTmpStore(boolean isTmpStore)

setInputSpec

public void setInputSpec(FileSpec in)

getInputSpec

public FileSpec getInputSpec()

getSignature

public String getSignature()

setSignature

public void setSignature(String sig)

constructSignature

public static String constructSignature(String alias,
                                        String filename,
                                        FuncSpec funcSpec)

getFileSpec

public FileSpec getFileSpec()

setAlias

public void setAlias(String alias)
Overrides:
setAlias in class LogicalRelationalOperator


Copyright © ${year} The Apache Software Foundation