@InterfaceAudience.Private public final class StoreUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.conf.Configuration |
createStoreConfiguration(org.apache.hadoop.conf.Configuration conf,
TableDescriptor td,
ColumnFamilyDescriptor cfd) |
static int |
getBytesPerChecksum(org.apache.hadoop.conf.Configuration conf)
Returns the configured bytesPerChecksum value.
|
static ChecksumType |
getChecksumType(org.apache.hadoop.conf.Configuration conf)
Returns the configured checksum algorithm.
|
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 long |
getStorefileFieldSize(HStoreFile file,
ToLongFunction<StoreFileReader> f) |
static long |
getStorefilesSize(Collection<HStoreFile> files,
Predicate<HStoreFile> predicate) |
static long |
getTotalUncompressedBytes(List<HStoreFile> files) |
static boolean |
hasReferences(Collection<HStoreFile> files)
Determines whether any files in the collection are references.
|
static List<StoreFileInfo> |
toStoreFileInfo(Collection<HStoreFile> storefiles) |
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
IOExceptionpublic static OptionalLong getMaxMemStoreTSInList(Collection<HStoreFile> sfs)
public static OptionalLong getMaxSequenceIdInList(Collection<HStoreFile> sfs)
public static ChecksumType getChecksumType(org.apache.hadoop.conf.Configuration conf)
conf - The configurationpublic static int getBytesPerChecksum(org.apache.hadoop.conf.Configuration conf)
conf - The configurationpublic static org.apache.hadoop.conf.Configuration createStoreConfiguration(org.apache.hadoop.conf.Configuration conf,
TableDescriptor td,
ColumnFamilyDescriptor cfd)
public static List<StoreFileInfo> toStoreFileInfo(Collection<HStoreFile> storefiles)
public static long getTotalUncompressedBytes(List<HStoreFile> files)
public static long getStorefilesSize(Collection<HStoreFile> files, Predicate<HStoreFile> predicate)
public static long getStorefileFieldSize(HStoreFile file, ToLongFunction<StoreFileReader> f)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.