public class RawColumn extends Object
RawTable
.Modifier and Type | Method and Description |
---|---|
boolean |
createPartition(int pId)
Creates a new column partition.
|
static String |
getColumnPath(String tablePath,
int columnIndex) |
TachyonFile |
getPartition(int pId)
Gets an existing partition.
|
TachyonFile |
getPartition(int pId,
boolean cachedMetadata)
Gets an existing partition.
|
int |
partitions()
Identifies the number of column partitions.
|
public static String getColumnPath(String tablePath, int columnIndex)
tablePath
- path of the tablecolumnIndex
- column IDpublic boolean createPartition(int pId) throws IOException
pId
- the partition idIOException
- when the partition the path is invalid or points to an existing objectpublic TachyonFile getPartition(int pId) throws IOException
pId
- the partition idTachyonFile
with the given partitionIOException
- when the partition the path is invalid or points to a non-existing objectpublic TachyonFile getPartition(int pId, boolean cachedMetadata) throws IOException
pId
- the partition idcachedMetadata
- whether to use the file metadata cacheTachyonFile
with the given partitionIOException
- when the partition the path is invalid or points to a non-existing objectpublic int partitions() throws IOException
IOException
- when any of the partition paths is invalid or points to a non-existing
objectCopyright © 2015. All Rights Reserved.