public class RawTables extends ImageWriter
| Constructor and Description |
|---|
RawTables() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRawTable(int tableId,
int columns,
ByteBuffer metadata)
Add a raw table.
|
boolean |
delete(int tableId)
Remove a raw table.
|
boolean |
exist(int inodeId)
Test if the raw table exist or not.
|
int |
getColumns(int tableId)
Get the number of the columns of a raw table.
|
ByteBuffer |
getMetadata(int tableId)
Get the metadata of the specified raw table.
|
Pair<Integer,ByteBuffer> |
getTableInfo(int tableId)
Get the raw table info.
|
void |
updateMetadata(int tableId,
ByteBuffer metadata)
Update the metadata of the specified raw table.
|
void |
writeImage(com.fasterxml.jackson.databind.ObjectWriter objWriter,
DataOutputStream dos)
Write image to the specified DataOutputStream.
|
writeElementpublic boolean addRawTable(int tableId,
int columns,
ByteBuffer metadata)
throws TachyonException
tableId - The id of the raw tablecolumns - The number of columns in the raw tablemetadata - The additional metadata of the raw tableTachyonExceptionpublic boolean delete(int tableId)
tableId - The id of the raw tablepublic boolean exist(int inodeId)
inodeId - the raw table id.public int getColumns(int tableId)
tableId - the inode id of the raw table.public ByteBuffer getMetadata(int tableId)
tableId - The id of the raw tablepublic Pair<Integer,ByteBuffer> getTableInfo(int tableId)
tableId - the raw table id.public void updateMetadata(int tableId,
ByteBuffer metadata)
throws TachyonException
tableId - The id of the raw tablemetadata - The new metadata of the raw tableTachyonExceptionpublic void writeImage(com.fasterxml.jackson.databind.ObjectWriter objWriter,
DataOutputStream dos)
throws IOException
ImageWriterobjWriter - The used object writerdos - The target data output streamIOExceptionCopyright © 2015. All Rights Reserved.