public class RawTables extends ImageWriter
Constructor and Description |
---|
RawTables() |
Modifier and Type | Method and Description |
---|---|
boolean |
addRawTable(int tableId,
int columns,
ByteBuffer metadata) |
boolean |
delete(int tableId) |
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) |
Pair<Integer,ByteBuffer> |
getTableInfo(int tableId)
Get the raw table info.
|
void |
updateMetadata(int tableId,
ByteBuffer metadata) |
void |
writeImage(com.fasterxml.jackson.databind.ObjectWriter objWriter,
DataOutputStream dos) |
writeElement
public boolean addRawTable(int tableId, int columns, ByteBuffer metadata) throws TachyonException
TachyonException
public boolean delete(int tableId)
public boolean exist(int inodeId)
inodeId
- the raw table id.public int getColumns(int tableId)
inodeId
- the inode id of the raw table.public ByteBuffer getMetadata(int tableId)
public Pair<Integer,ByteBuffer> getTableInfo(int tableId)
inodeId
- the raw table id.public void updateMetadata(int tableId, ByteBuffer metadata) throws TachyonException
TachyonException
public void writeImage(com.fasterxml.jackson.databind.ObjectWriter objWriter, DataOutputStream dos) throws IOException
IOException
Copyright © 2014. All rights reserved.