org.apache.hadoop.hbase.io
Interface WritableWithSize


@InterfaceAudience.Private
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 © 2013 The Apache Software Foundation. All Rights Reserved.