org.apache.pig
Class SortInfo

java.lang.Object
  extended by org.apache.pig.SortInfo
All Implemented Interfaces:
Serializable

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class SortInfo
extends Object
implements Serializable

Class to communicate sort column information based on order by statment's sort columns and schema

See Also:
Serialized Form

Constructor Summary
SortInfo(List<SortColInfo> sortColInfoList)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<SortColInfo> getSortColInfoList()
           
 int hashCode()
           
 boolean isGloballySorted()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortInfo

public SortInfo(List<SortColInfo> sortColInfoList)
Parameters:
sortColInfoList - list of sortColInfo, one for each field in the data
Method Detail

getSortColInfoList

public List<SortColInfo> getSortColInfoList()
Returns:
the sortColInfoList the list of sortColInfo for this data

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isGloballySorted

public boolean isGloballySorted()
Returns:
the isGloballySorted true if the data is globally sorted, false if it is sorted only within each part file.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 The Apache Software Foundation