public boolean checkBoundariesWithPredicate() {
      int rawBlockSize = encodedBlockSizeWritten();
      if (rawBlockSize >= maxSizeUnCompressed) {
        return true;
      } else {
        return compressedSizePredicator.shouldFinishBlock(rawBlockSize);
      }
    }
Transitions the block writer from the "writing" state to the "block ready" state. Does
nothing if a block is already finished.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java