Using Apache HBase to store and access data
Also available as:
PDF
loading table of contents...

Method 2: Invoke MOB support parameters in a Java API

You can use the MOB support parameters in a Java API to enable and configure MOB storage support.

If you invoke the MOB threshold parameter, substitute bytes with the value for the number of bytes for the threshold size at which an object is treated as a medium-size object. If you omit the parameter when you enable MOB storage, the threshold value defaults to 102400 (100 KB).

Use the hcd.setMobEnabled(true); parameter to enable and configure MOB storage support. The parameter hcd.setMobThreshold(bytes); is optional.

Following is a Java API example:

HColumnDescriptor hcd = new HColumnDescriptor(“f”); 
hcd.setMobEnabled(true);  
hcd.setMobThreshold(102400L);