public class TsFileIdentifier extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
FILE_NAME_OFFSET_IN_LOG |
static int |
FILE_NAME_OFFSET_IN_PATH |
static String |
INFO_SEPARATOR |
static int |
LOGICAL_SG_OFFSET_IN_LOG |
static int |
LOGICAL_SG_OFFSET_IN_PATH |
static int |
SEQUENCE_OFFSET_IN_LOG |
static int |
SEQUENCE_OFFSET_IN_PATH |
static int |
TIME_PARTITION_OFFSET_IN_LOG |
static int |
TIME_PARTITION_OFFSET_IN_PATH |
static int |
VIRTUAL_SG_OFFSET_IN_LOG |
static int |
VIRTUAL_SG_OFFSET_IN_PATH |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other) |
File |
getFileFromDataDirs()
This method find the File object of current file by searching it in every data directory.
|
static TsFileIdentifier |
getFileIdentifierFromFilePath(String filepath)
This function generates an instance of CompactionFileIdentifier by parsing the path of a
tsfile.
|
static TsFileIdentifier |
getFileIdentifierFromInfoString(String infoString)
This function generates an instance of CompactionFileIdentifier by parsing the info string of a
tsfile(usually recorded in a compaction.log), such as “sequence root.test.sg 0 0
0-0-0-0.tsfile"
|
static TsFileIdentifier |
getFileIdentifierFromOldInfoString(String oldInfoString)
This function generates an instance of CompactionFileIdentifier by parsing the old info string
from previous version (<0.13) of a tsfile(usually recorded in a compaction.log).
|
String |
getFilename() |
String |
getFilePath() |
String |
getLogicalStorageGroupName() |
String |
getTimePartitionId() |
String |
getVirtualStorageGroupId() |
boolean |
isSequence() |
String |
toString() |
public static final int FILE_NAME_OFFSET_IN_PATH
public static final int TIME_PARTITION_OFFSET_IN_PATH
public static final int VIRTUAL_SG_OFFSET_IN_PATH
public static final int LOGICAL_SG_OFFSET_IN_PATH
public static final int SEQUENCE_OFFSET_IN_PATH
public static final int SEQUENCE_OFFSET_IN_LOG
public static final int LOGICAL_SG_OFFSET_IN_LOG
public static final int VIRTUAL_SG_OFFSET_IN_LOG
public static final int TIME_PARTITION_OFFSET_IN_LOG
public static final int FILE_NAME_OFFSET_IN_LOG
public static TsFileIdentifier getFileIdentifierFromFilePath(String filepath)
public static TsFileIdentifier getFileIdentifierFromInfoString(String infoString)
public static TsFileIdentifier getFileIdentifierFromOldInfoString(String oldInfoString)
public File getFileFromDataDirs()
public String getFilename()
public String getFilePath()
public String getLogicalStorageGroupName()
public String getVirtualStorageGroupId()
public String getTimePartitionId()
public boolean isSequence()
Copyright © 2022 The Apache Software Foundation. All rights reserved.