org.apache.hadoop.zebra.io
Class BasicTableStatus

java.lang.Object
  extended by org.apache.hadoop.zebra.io.BasicTableStatus
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public final class BasicTableStatus
extends Object
implements org.apache.hadoop.io.Writable

Status of a BasicTable. The status may be reported under some projection. Projection is needed because the size of a BasicTable may be affected by the projection.


Constructor Summary
BasicTableStatus()
           
 
Method Summary
 org.apache.hadoop.io.BytesWritable getBeginKey()
          Get the begin key.
 org.apache.hadoop.io.BytesWritable getEndKey()
          Get the end key.
 long getRows()
          Get the # of rows of the BasicTable.
 long getSize()
          Get the size in bytes of the BasicTable.
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTableStatus

public BasicTableStatus()
Method Detail

getBeginKey

public org.apache.hadoop.io.BytesWritable getBeginKey()
Get the begin key. If the begin key is unknown, null will be returned.

Returns:
begin key.

getEndKey

public org.apache.hadoop.io.BytesWritable getEndKey()
Get the end key. If the end key is unknown, null will be returned.

Returns:
end key.

getSize

public long getSize()
Get the size in bytes of the BasicTable.

Returns:
Size (in bytes) of all files that make up the BasicTable.

getRows

public long getRows()
Get the # of rows of the BasicTable. If the # of rows is unknown, -1 will be returned.

Returns:
Number of rows of the BasicTable.

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException
See Also:
Writable.readFields(DataInput)

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException
See Also:
Writable.write(DataOutput)


Copyright © 2012 The Apache Software Foundation