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.
 
Constructor Summary
ResourceStatistics()
           
 
Method Summary
 Object clone()
           
 boolean equals(Object anOther)
           
 Long getAvgRecordSize()
           
 ResourceStatistics.ResourceFieldStatistics[] getFields()
           
 Long getmBytes()
           
 Long getNumRecords()
           
 Long getSizeInBytes()
           
 int hashCode()
           
 void setAvgRecordSize(Long sizeInBytes)
          Set average record size in bytes
 ResourceStatistics setFields(ResourceStatistics.ResourceFieldStatistics[] fields)
           
 ResourceStatistics setmBytes(Long mBytes)
          Deprecated. Use setSizeInBytes(Long) instead
 ResourceStatistics setNumRecords(Long numRecords)
           
 void setSizeInBytes(Long bytes)
          Sets the size in bytes
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceStatistics

public ResourceStatistics()
Method Detail

getmBytes

public Long getmBytes()

setmBytes

@Deprecated
public ResourceStatistics setmBytes(Long mBytes)
Deprecated. Use setSizeInBytes(Long) instead

Parameters:
mBytes -

setSizeInBytes

public void setSizeInBytes(Long bytes)
Sets the size in bytes

Parameters:
bytes -

getSizeInBytes

public Long getSizeInBytes()
Returns:
size in bytes.

getNumRecords

public Long getNumRecords()

setNumRecords

public ResourceStatistics setNumRecords(Long numRecords)

getAvgRecordSize

public Long getAvgRecordSize()

setAvgRecordSize

public void setAvgRecordSize(Long sizeInBytes)
Set average record size in bytes

Parameters:
sizeInBytes -

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 © 2007-2012 The Apache Software Foundation