org.apache.hadoop.hbase.regionserver
Class StoreUtils

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.StoreUtils

@InterfaceAudience.Private
public class StoreUtils
extends Object

Utility functions for region server storage layer.


Constructor Summary
StoreUtils()
           
 
Method Summary
static Integer getDeterministicRandomSeed(Collection<StoreFile> files)
          Creates a deterministic hash code for store file collection.
static long getLowestTimestamp(Collection<StoreFile> candidates)
          Gets lowest timestamp from candidate StoreFiles
static boolean hasReferences(Collection<StoreFile> files)
          Determines whether any files in the collection are references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreUtils

public StoreUtils()
Method Detail

getDeterministicRandomSeed

public static Integer getDeterministicRandomSeed(Collection<StoreFile> files)
Creates a deterministic hash code for store file collection.


hasReferences

public static boolean hasReferences(Collection<StoreFile> files)
Determines whether any files in the collection are references.

Parameters:
files - The files.

getLowestTimestamp

public static long getLowestTimestamp(Collection<StoreFile> candidates)
                               throws IOException
Gets lowest timestamp from candidate StoreFiles

Throws:
IOException


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