Package | Description |
---|---|
tachyon | |
tachyon.client | |
tachyon.examples | |
tachyon.hadoop | |
tachyon.master | |
tachyon.util | |
tachyon.worker.hierarchy |
Modifier and Type | Field and Description |
---|---|
static TachyonURI |
TachyonURI.EMPTY_URI |
Modifier and Type | Method and Description |
---|---|
TachyonURI |
TachyonURI.getParent()
Get the parent of this TachyonURI or null if at root.
|
TachyonURI |
TachyonURI.join(String suffix)
Append additional path elements to the end of a TachyonURI.
|
TachyonURI |
TachyonURI.join(TachyonURI suffix)
Append additional path elements to the end of a TachyonURI.
|
Modifier and Type | Method and Description |
---|---|
int |
TachyonURI.compareTo(TachyonURI other) |
TachyonURI |
TachyonURI.join(TachyonURI suffix)
Append additional path elements to the end of a TachyonURI.
|
static Pair<String,String> |
UnderFileSystem.parse(TachyonURI path)
Transform an input string like hdfs://host:port/dir, hdfs://host:port, file:///dir, /dir into a
pair of address and path.
|
Constructor and Description |
---|
TachyonURI(TachyonURI parent,
TachyonURI child)
Resolve a child TachyonURI against a parent TachyonURI.
|
Modifier and Type | Method and Description |
---|---|
TachyonURI |
TachyonFS.getUri() |
Modifier and Type | Method and Description |
---|---|
int |
TachyonFS.createFile(TachyonURI path,
TachyonURI ufsPath,
long blockSizeByte,
boolean recursive)
Creates a new file in the file system.
|
int |
TachyonFS.createRawTable(TachyonURI path,
int columns)
Create a RawTable and return its id
|
int |
TachyonFS.createRawTable(TachyonURI path,
int columns,
ByteBuffer metadata)
Create a RawTable and return its id
|
boolean |
TachyonFS.delete(int fileId,
TachyonURI path,
boolean recursive)
Deletes a file or folder
|
boolean |
TachyonFS.exist(TachyonURI path)
Return whether the file exists or not
|
boolean |
TachyonFS.freepath(int fileId,
TachyonURI path,
boolean recursive)
Frees in memory file or folder
|
static TachyonFS |
TachyonFS.get(TachyonURI tachyonURI)
Create a TachyonFS handler.
|
TachyonFile |
TachyonFS.getFile(TachyonURI path)
Get
TachyonFile based on the path. |
TachyonFile |
TachyonFS.getFile(TachyonURI path,
boolean useCachedMetadata)
Get
TachyonFile based on the path. |
int |
TachyonFS.getFileId(TachyonURI path)
Get file id by the path.
|
ClientFileInfo |
TachyonFS.getFileStatus(int fileId,
TachyonURI path) |
ClientFileInfo |
TachyonFS.getFileStatus(int fileId,
TachyonURI path,
boolean useCachedMetadata)
Advanced API.
|
RawTable |
TachyonFS.getRawTable(TachyonURI path)
Get the RawTable by path
|
List<ClientFileInfo> |
TachyonFS.listStatus(TachyonURI path)
If the
path is a directory, return all the direct entries in it. |
boolean |
TachyonFS.mkdirs(TachyonURI path,
boolean recursive)
Creates a folder.
|
boolean |
TachyonFS.rename(int fileId,
TachyonURI srcPath,
TachyonURI dstPath)
Renames a file or folder to another path.
|
boolean |
TachyonFile.rename(TachyonURI path)
Rename this file
|
Constructor and Description |
---|
BasicCheckpoint(TachyonURI tachyonURI,
String fileFolder,
int numFiles) |
BasicNonByteBufferOperations(TachyonURI masterLocation,
TachyonURI filePath,
WriteType writeType,
ReadType readType,
boolean deleteIfExists,
int length) |
BasicOperations(TachyonURI masterLocation,
TachyonURI filePath,
WriteType writeType) |
BasicRawTableOperations(TachyonURI masterAddress,
TachyonURI tablePath,
WriteType writeType) |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.fs.Path |
Utils.getHDFSPath(TachyonURI path,
String ufsAddress) |
Modifier and Type | Method and Description |
---|---|
TachyonURI |
MasterInfo.getPath(int fileId)
Get the path of a file with the given id
|
Modifier and Type | Method and Description |
---|---|
List<TachyonURI> |
MasterInfo.getInMemoryFiles()
Get absolute paths of all in memory files.
|
List<TachyonURI> |
MasterInfo.ls(TachyonURI path,
boolean recursive)
Get the names of the sub-directories at the given path.
|
Modifier and Type | Method and Description |
---|---|
ClientRawTableInfo |
MasterInfo._getClientRawTableInfo(TachyonURI path,
Inode inode)
Get the raw table info associated with the given id.
|
boolean |
MasterInfo._rename(int fileId,
TachyonURI dstPath,
long opTimeMs)
Rename a file to the given path, inner method.
|
void |
EditLog.addCheckpoint(int fileId,
long length,
TachyonURI checkpointPath,
long opTimeMs)
Log an addCheckpoint operation.
|
boolean |
MasterInfo.addCheckpoint(long workerId,
int fileId,
long length,
TachyonURI checkpointPath)
Add a checkpoint to a file.
|
int |
MasterInfo.createFile(boolean recursive,
TachyonURI path,
boolean directory,
long blockSizeByte)
Create a file.
|
void |
EditLog.createFile(boolean recursive,
TachyonURI path,
boolean directory,
long blockSizeByte,
long creationTimeMs)
Log a createFile operation.
|
int |
MasterInfo.createFile(TachyonURI path,
long blockSizeByte) |
int |
MasterInfo.createFile(TachyonURI path,
long blockSizeByte,
boolean recursive) |
int |
MasterInfo.createRawTable(TachyonURI path,
int columns,
ByteBuffer metadata)
Creates a raw table.
|
boolean |
MasterInfo.delete(TachyonURI path,
boolean recursive)
Delete files based on the path.
|
boolean |
MasterInfo.freepath(TachyonURI path,
boolean recursive)
Frees files based on the path
|
List<BlockInfo> |
MasterInfo.getBlockList(TachyonURI path)
Get the list of blocks of an InodeFile determined by path.
|
ClientFileInfo |
MasterInfo.getClientFileInfo(TachyonURI path)
Get the file info for the file at the given path
|
ClientRawTableInfo |
MasterInfo.getClientRawTableInfo(TachyonURI path)
Get the raw table info for the table at the given path
|
List<ClientBlockInfo> |
MasterInfo.getFileBlocks(TachyonURI path)
Get the block infos of a file with the given path.
|
int |
MasterInfo.getFileId(TachyonURI path)
Get the file id of the file.
|
List<ClientFileInfo> |
MasterInfo.getFilesInfo(TachyonURI path)
If the
path is a directory, return all the direct entries in it. |
int |
MasterInfo.getNumberOfFiles(TachyonURI path)
Get the number of files at a given path.
|
int |
MasterInfo.getRawTableId(TachyonURI path)
Get the id of the table at the given path.
|
List<Integer> |
MasterInfo.listFiles(TachyonURI path,
boolean recursive)
Get the id of the file at the given path.
|
void |
MasterInfo.loadImage(com.fasterxml.jackson.core.JsonParser parser,
TachyonURI path)
Load the image from
parser , which is created based on the path . |
List<TachyonURI> |
MasterInfo.ls(TachyonURI path,
boolean recursive)
Get the names of the sub-directories at the given path.
|
boolean |
MasterInfo.mkdirs(TachyonURI path,
boolean recursive)
Create a directory at the given path.
|
boolean |
MasterInfo.rename(int fileId,
TachyonURI dstPath)
Rename a file to the given path.
|
void |
EditLog.rename(int fileId,
TachyonURI dstPath,
long opTimeMs)
Log a rename operation.
|
boolean |
MasterInfo.rename(TachyonURI srcPath,
TachyonURI dstPath)
Rename a file to the given path.
|
Modifier and Type | Method and Description |
---|---|
int |
MasterInfo.createDependency(List<TachyonURI> parents,
List<TachyonURI> children,
String commandPrefix,
List<ByteBuffer> data,
String comment,
String framework,
String frameworkVersion,
DependencyType dependencyType) |
int |
MasterInfo.createDependency(List<TachyonURI> parents,
List<TachyonURI> children,
String commandPrefix,
List<ByteBuffer> data,
String comment,
String framework,
String frameworkVersion,
DependencyType dependencyType) |
Modifier and Type | Method and Description |
---|---|
static TachyonURI |
NetworkUtils.replaceHostName(TachyonURI path)
Replace and resolve the hostname in a given address or path string.
|
Modifier and Type | Method and Description |
---|---|
static void |
UfsUtils.loadUfs(TachyonURI tfsAddrRootPath,
TachyonURI ufsAddrRootPath,
String excludePaths)
Load files under path "ufsAddrRootPath" (excluding excludePathPrefix relative to the path) to
the given tfs under a given destination path.
|
static void |
UfsUtils.loadUnderFs(TachyonFS tfs,
TachyonURI tachyonPath,
TachyonURI ufsAddrRootPath,
PrefixList excludePathPrefix)
Load files under path "ufsAddress/ufsRootPath" (excluding excludePathPrefix) to the given tfs
under the given tfsRootPath directory.
|
static TachyonURI |
NetworkUtils.replaceHostName(TachyonURI path)
Replace and resolve the hostname in a given address or path string.
|
Modifier and Type | Method and Description |
---|---|
TachyonURI |
StorageDir.getDirDataPath()
Get data path of current StorageDir
|
TachyonURI |
StorageDir.getDirPath()
Get root path of current StorageDir
|
TachyonURI |
StorageDir.getUserTempPath()
Get root temporary path of users
|
Copyright © 2015. All Rights Reserved.