@InterfaceAudience.Private public class StoreUtils extends Object
| Constructor and Description |
|---|
StoreUtils() |
| 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 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
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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.