Class StoreFileComparators

java.lang.Object
org.apache.hadoop.hbase.regionserver.StoreFileComparators

@Private final class StoreFileComparators extends Object
Useful comparators for comparing store files.
  • Field Details

    • SEQ_ID

      public static final Comparator<HStoreFile> SEQ_ID
      Comparator that compares based on the Sequence Ids of the the store files. 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

      Comparator for time-aware compaction. SeqId is still the first ordering criterion to maintain MVCC.
  • Constructor Details