@InterfaceAudience.Private public final class MobFileName extends Object
Modifier and Type | Field and Description |
---|---|
private String |
date |
private static int |
DATE_END_INDEX |
private String |
fileName |
private String |
startKey |
private static int |
STARTKEY_END_INDEX |
private String |
uuid |
private static int |
UUID_END_INDEX |
Modifier | Constructor and Description |
---|---|
private |
MobFileName(byte[] startKey,
String date,
String uuid) |
private |
MobFileName(String startKey,
String date,
String uuid) |
Modifier and Type | Method and Description |
---|---|
static MobFileName |
create(byte[] startKey,
String date,
String uuid)
Creates an instance of MobFileName
|
static MobFileName |
create(String fileName)
Creates an instance of MobFileName.
|
static MobFileName |
create(String startKey,
String date,
String uuid)
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 |
getStartKey()
Gets the hex string of the md5 for a start key.
|
static String |
getStartKeyFromName(String fileName)
get startKey from MobFileName.
|
int |
hashCode() |
private static final int STARTKEY_END_INDEX
private static final int DATE_END_INDEX
private static final int UUID_END_INDEX
private MobFileName(byte[] startKey, String date, String uuid)
startKey
- The start key.date
- The string of the latest timestamp of cells in this file, the format is yyyymmdd.uuid
- The uuidprivate MobFileName(String startKey, String date, String uuid)
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 uuidpublic static MobFileName create(byte[] startKey, String date, String uuid)
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.public static MobFileName create(String startKey, String date, String uuid)
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.public static MobFileName create(String fileName)
fileName
- The string format of a file name.public static String getStartKeyFromName(String fileName)
fileName
- file name.public static String getDateFromName(String fileName)
fileName
- file name.public String getStartKey()
public String getDate()
public String getFileName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.