org.apache.hadoop.hbase.regionserver
Class HRegion.FlushResult

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.HRegion.FlushResult
Enclosing class:
HRegion

public static class HRegion.FlushResult
extends Object

Objects from this class are created when flushing to describe all the different states that that method ends up in. The Result enum describes those states. The sequence id should only be specified if the flush was successful, and the failure message should only be speficied if it didn't flush.


Method Summary
 boolean isCompactionNeeded()
          Convenience method, the equivalent of checking if result is FLUSHED_COMPACTION_NEEDED.
 boolean isFlushSucceeded()
          Convenience method, the equivalent of checking if result is FLUSHED_NO_COMPACTION_NEEDED or FLUSHED_NO_COMPACTION_NEEDED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isFlushSucceeded

public boolean isFlushSucceeded()
Convenience method, the equivalent of checking if result is FLUSHED_NO_COMPACTION_NEEDED or FLUSHED_NO_COMPACTION_NEEDED.

Returns:
true if the memstores were flushed, else false.

isCompactionNeeded

public boolean isCompactionNeeded()
Convenience method, the equivalent of checking if result is FLUSHED_COMPACTION_NEEDED.

Returns:
True if the flush requested a compaction, else false (doesn't even mean it flushed).


Copyright © 2015 The Apache Software Foundation. All rights reserved.