@InterfaceAudience.Private public class StoreUtils extends Object
| Constructor and Description |
|---|
StoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static OptionalInt |
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 long |
getMaxMemstoreTSInList(Collection<StoreFile> sfs)
Return the largest memstoreTS found across all storefiles in the given list.
|
static long |
getMaxSequenceIdInList(Collection<StoreFile> sfs)
Return the highest sequence ID found across all storefiles in
the given list.
|
static boolean |
hasReferences(Collection<StoreFile> files)
Determines whether any files in the collection are references.
|
public static OptionalInt getDeterministicRandomSeed(Collection<StoreFile> files)
public static boolean hasReferences(Collection<StoreFile> files)
files - The files.public static long getLowestTimestamp(Collection<StoreFile> candidates) throws IOException
IOExceptionpublic static long getMaxMemstoreTSInList(Collection<StoreFile> sfs)
public static long getMaxSequenceIdInList(Collection<StoreFile> sfs)
sfs - Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.