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