org.apache.hadoop.hbase.io
Interface WritableWithSize

All Known Implementing Classes:
HbaseObjectWritable, Result

public interface WritableWithSize

An optional interface to 'size' writables.


Method Summary
 long getWritableSize()
          Provide a size hint to the caller.
 

Method Detail

getWritableSize

long getWritableSize()
Provide a size hint to the caller. write() should ideally not go beyond this if at all possible. You can return 0 if there is no size hint.

Returns:
the size of the writable


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.