org.apache.hadoop.hbase.regionserver
Class StoreFile.Comparators

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.StoreFile.Comparators
Enclosing class:
StoreFile

public abstract static class StoreFile.Comparators
extends Object

Useful comparators for comparing StoreFiles.


Field Summary
static Comparator<StoreFile> SEQ_ID
          Comparator that compares based on the Sequence Ids of the the StoreFiles.
static Comparator<StoreFile> SEQ_ID_MAX_TIMESTAMP
          Comparator for time-aware compaction.
 
Constructor Summary
StoreFile.Comparators()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEQ_ID

public static final Comparator<StoreFile> SEQ_ID
Comparator that compares based on the Sequence Ids of the the StoreFiles. Bulk loads that did not request a seq ID are given a seq id of -1; thus, they are placed before all non- bulk loads, and bulk loads with sequence Id. Among these files, the size is used to determine the ordering, then bulkLoadTime. If there are ties, the path name is used as a tie-breaker.


SEQ_ID_MAX_TIMESTAMP

public static final Comparator<StoreFile> SEQ_ID_MAX_TIMESTAMP
Comparator for time-aware compaction. SeqId is still the first ordering criterion to maintain MVCC.

Constructor Detail

StoreFile.Comparators

public StoreFile.Comparators()


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.