public class StoreUtils
extends java.lang.Object
| Constructor and Description |
|---|
StoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.OptionalInt |
getDeterministicRandomSeed(java.util.Collection<HStoreFile> files)
Creates a deterministic hash code for store file collection.
|
static long |
getLowestTimestamp(java.util.Collection<HStoreFile> candidates)
Gets lowest timestamp from candidate StoreFiles
|
static java.util.OptionalLong |
getMaxMemStoreTSInList(java.util.Collection<HStoreFile> sfs)
Return the largest memstoreTS found across all storefiles in the given list.
|
static java.util.OptionalLong |
getMaxSequenceIdInList(java.util.Collection<HStoreFile> sfs)
Return the highest sequence ID found across all storefiles in the given list.
|
static boolean |
hasReferences(java.util.Collection<HStoreFile> files)
Determines whether any files in the collection are references.
|
public static java.util.OptionalInt getDeterministicRandomSeed(java.util.Collection<HStoreFile> files)
public static boolean hasReferences(java.util.Collection<HStoreFile> files)
files - The files.public static long getLowestTimestamp(java.util.Collection<HStoreFile> candidates)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.OptionalLong getMaxMemStoreTSInList(java.util.Collection<HStoreFile> sfs)
public static java.util.OptionalLong getMaxSequenceIdInList(java.util.Collection<HStoreFile> sfs)