org.apache.pig
Class ResourceStatistics

java.lang.Object
  extended by org.apache.pig.ResourceStatistics
All Implemented Interfaces:
Cloneable

@InterfaceAudience.Public
@InterfaceStability.Unstable
public class ResourceStatistics
extends Object
implements Cloneable

An class that represents statistics about data to be loaded or stored. It is marked unstable because Pig does very little statistics collection at this point. If and when that functionality is added it is expected that this interface will change.

Since:
Pig 0.7

Nested Class Summary
static class ResourceStatistics.ResourceFieldStatistics
          Statistics for a given field in the data.
 
Field Summary
 Long avgRecordSize
           
 ResourceStatistics.ResourceFieldStatistics[] fields
           
 Long mBytes
           
 Long numRecords
           
 
Constructor Summary
ResourceStatistics()
           
 
Method Summary
 Object clone()
           
 boolean equals(Object anOther)
           
 Long getAvgRecordSize()
           
 ResourceStatistics.ResourceFieldStatistics[] getFields()
           
 Long getmBytes()
           
 Long getNumRecords()
           
 int hashCode()
           
 void setAvgRecordSize(Long size)
           
 ResourceStatistics setFields(ResourceStatistics.ResourceFieldStatistics[] fields)
           
 ResourceStatistics setmBytes(Long mBytes)
           
 ResourceStatistics setNumRecords(Long numRecords)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mBytes

public Long mBytes

numRecords

public Long numRecords

avgRecordSize

public Long avgRecordSize

fields

public ResourceStatistics.ResourceFieldStatistics[] fields
Constructor Detail

ResourceStatistics

public ResourceStatistics()
Method Detail

getmBytes

public Long getmBytes()

setmBytes

public ResourceStatistics setmBytes(Long mBytes)

getNumRecords

public Long getNumRecords()

setNumRecords

public ResourceStatistics setNumRecords(Long numRecords)

getAvgRecordSize

public Long getAvgRecordSize()

setAvgRecordSize

public void setAvgRecordSize(Long size)

getFields

public ResourceStatistics.ResourceFieldStatistics[] getFields()

setFields

public ResourceStatistics setFields(ResourceStatistics.ResourceFieldStatistics[] fields)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © ${year} The Apache Software Foundation