@InterfaceAudience.Private public final class MobFileName extends Object
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() |
public 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–2019 Cloudera. All rights reserved.