public class TierObjectStoreUtils
extends java.lang.Object
Constructor and Description |
---|
TierObjectStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
createSegmentMetadata(TierObjectStore.ObjectMetadata objectMetadata,
java.lang.String clusterId,
int brokerId)
Returns a Map containing the metadata of a segment.
|
static java.lang.String |
keyPath(TierObjectStore.ObjectMetadata objectMetadata,
TierObjectStore.FileType fileType)
Returns a String of the key path for the given object metadata and file type.
|
public static java.lang.String keyPath(TierObjectStore.ObjectMetadata objectMetadata, TierObjectStore.FileType fileType)
objectMetadata
- The metadata from which to construct the key pathfileType
- The file type for the suffix of the pathpublic static java.util.Map<java.lang.String,java.lang.String> createSegmentMetadata(TierObjectStore.ObjectMetadata objectMetadata, java.lang.String clusterId, int brokerId)
objectMetadata
- The metadata of the segmentclusterId
- The name of the clusterbrokerId
- The ID of the broker