voldemort.server.protocol.hadoop
Class RestHadoopFetcher.IndexFileLastComparator

java.lang.Object
  extended by voldemort.server.protocol.hadoop.RestHadoopFetcher.IndexFileLastComparator
All Implemented Interfaces:
java.util.Comparator<com.linkedin.tusk.RestFileStatus>
Enclosing class:
RestHadoopFetcher

public static class RestHadoopFetcher.IndexFileLastComparator
extends java.lang.Object
implements java.util.Comparator<com.linkedin.tusk.RestFileStatus>

A comparator that sorts index files last. This is a heuristic for retaining the index file in page cache until the swap occurs


Constructor Summary
RestHadoopFetcher.IndexFileLastComparator()
           
 
Method Summary
 int compare(com.linkedin.tusk.RestFileStatus fs1, com.linkedin.tusk.RestFileStatus fs2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

RestHadoopFetcher.IndexFileLastComparator

public RestHadoopFetcher.IndexFileLastComparator()
Method Detail

compare

public int compare(com.linkedin.tusk.RestFileStatus fs1,
                   com.linkedin.tusk.RestFileStatus fs2)
Specified by:
compare in interface java.util.Comparator<com.linkedin.tusk.RestFileStatus>


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu