@InterfaceAudience.Private public class StoreUtils extends Object
Constructor and Description |
---|
StoreUtils() |
Modifier and Type | Method and Description |
---|---|
static Integer |
getDeterministicRandomSeed(Collection<StoreFile> files)
Creates a deterministic hash code for store file collection.
|
(package private) static StoreFile |
getLargestFile(Collection<StoreFile> candidates)
Gets the largest file (with reader) out of the list of files.
|
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.
|
public static Integer getDeterministicRandomSeed(Collection<StoreFile> files)
public static boolean hasReferences(Collection<StoreFile> files)
files
- The files.public static long getLowestTimestamp(Collection<StoreFile> candidates) throws IOException
IOException
static StoreFile getLargestFile(Collection<StoreFile> candidates)
candidates
- The files to choose from.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.