@InterfaceAudience.Private public final class MobFileName extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REGION_SEP |
| Modifier and Type | Method and Description |
|---|---|
static MobFileName |
create(byte[] startKey,
String date,
String uuid,
String regionName)
Creates an instance of MobFileName
|
static MobFileName |
create(String fileName)
Creates an instance of MobFileName.
|
static MobFileName |
create(String startKey,
String date,
String uuid,
String regionName)
Creates an instance of MobFileName
|
boolean |
equals(Object anObject) |
String |
getDate()
Gets the date string.
|
static String |
getDateFromName(String fileName)
get date from MobFileName.
|
String |
getFileName()
Gets the file name.
|
String |
getRegionName()
Gets region name
|
String |
getStartKey()
Gets the hex string of the md5 for a start key.
|
static String |
getStartKeyFromName(String fileName)
get startKey from MobFileName.
|
int |
hashCode() |
static boolean |
isOldMobFileName(String name) |
public static final String REGION_SEP
public static MobFileName create(byte[] startKey, String date, String uuid, String regionName)
startKey - The md5 hex string of the start key.date - The string of the latest timestamp of cells in this file, the format is
yyyymmdd.uuid - The uuid.regionName - name of a region, where this file was created during flush or compaction.public static MobFileName create(String startKey, String date, String uuid, String regionName)
startKey - The md5 hex string of the start key.date - The string of the latest timestamp of cells in this file, the format is
yyyymmdd.uuid - The uuid.regionName - name of a region, where this file was created during flush or compaction.public static MobFileName create(String fileName)
fileName - The string format of a file name.public static boolean isOldMobFileName(String name)
public static String getStartKeyFromName(String fileName)
fileName - file name.public static String getDateFromName(String fileName)
fileName - file name.public String getStartKey()
public String getRegionName()
public String getDate()
public String getFileName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.