@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 |
static String |
REGION_SEP |
private String |
regionName |
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,
String regionName)
n * The start key.
|
private |
MobFileName(String startKey,
String date,
String uuid,
String regionName)
n * The md5 hex string of the start key.
|
Modifier and Type | Method and Description |
---|---|
static MobFileName |
create(byte[] startKey,
String date,
String uuid,
String regionName)
Creates an instance of MobFileName n * The md5 hex string of the start key.
|
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 n * The md5 hex string of the start key.
|
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) |
private final String regionName
private static final int STARTKEY_END_INDEX
private static final int DATE_END_INDEX
private static final int UUID_END_INDEX
public static final String REGION_SEP
private MobFileName(byte[] startKey, String date, String uuid, String regionName)
regionName
- name of a region, where this file was created during flush or compaction.private MobFileName(String startKey, String date, String uuid, String regionName)
regionName
- name of a region, where this file was created during flush or compaction.public static MobFileName create(byte[] startKey, String date, String uuid, String regionName)
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)
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. npublic static String getDateFromName(String fileName)
fileName
- file name. npublic String getStartKey()
public String getRegionName()
public String getDate()
public String getFileName()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.