Modifier and Type | Method and Description |
---|---|
TableDescriptor |
addFamily(FamilyDescriptor family)
Appends a FamilyDescriptor to this TableDescriptor.
|
TableDescriptor |
clone()
Creates and returns a copy of this TableDescriptor.
|
List<FamilyDescriptor> |
getFamilies()
Returns the list of family descriptors for this table.
|
FamilyDescriptor |
getFamily(String familyName)
Returns the FamilyDescriptor of the family with the specified name from this TableDescriptor
or
null if a family by this name does not exist in the TableDescriptor. |
int |
getNumFamilies()
Returns the number of family descriptors for this table descriptor.
|
org.apache.hadoop.fs.Path |
getPath() |
long |
getSplitSize() |
boolean |
isAutoSplit() |
boolean |
isBulkLoad() |
boolean |
isInsertionOrder() |
TableDescriptor |
setAutoSplit(boolean autoSplit)
Sets the tablets to split automatically, or not, if they grow beyond a certain size.
|
TableDescriptor |
setBulkLoad(boolean bulkLoad)
Sets if the table is created with bulk load mode turned on.
|
TableDescriptor |
setFamilies(List<FamilyDescriptor> families)
Sets the list of families for this TableDescriptor.
|
TableDescriptor |
setInsertionOrder(boolean insertionOrder)
Sets the map entries to be stored in the order they are added or not to be stored in order.
|
TableDescriptor |
setPath(org.apache.hadoop.fs.Path tablePath)
Sets the path of this table in MapR FileSystem.
|
TableDescriptor |
setPath(String tablePath)
Sets the path of this table in MapR FileSystem.
|
TableDescriptor |
setSplitSize(long splitSizeMB)
Sets the size in mebibytes at which a tablet in this table will split.
|
org.apache.hadoop.fs.Path getPath()
TableDescriptor setPath(String tablePath)
tablePath
- the table paththis
for chain invocationTableDescriptor setPath(org.apache.hadoop.fs.Path tablePath)
tablePath
- the table paththis
for chain invocationboolean isInsertionOrder()
true
if the map entries are stored in the order they are added, false
if they are stored in the lexicographical order of their key nameTableDescriptor setInsertionOrder(boolean insertionOrder)
insertionOrder
- true
if the map entries are stored in the order they are addedthis
for chain invocationboolean isBulkLoad()
true
if the bulk load mode is set on this tableTableDescriptor setBulkLoad(boolean bulkLoad)
bulkLoad
- true
if the bulk load mode is to be turned onthis
for chain invocationboolean isAutoSplit()
true
if a tablet should split automatically if it grows beyond a certain size.TableDescriptor setAutoSplit(boolean autoSplit)
autoSplit
- true
if the split should happen automaticallythis
for chain invocationlong getSplitSize()
TableDescriptor setSplitSize(long splitSizeMB)
splitSizeMB
- split size in mebibytesthis
for chain invocationFamilyDescriptor getFamily(String familyName)
null
if a family by this name does not exist in the TableDescriptor.
Modifying the returned object does not modify this TableDescriptor.familyName
- the family nameList<FamilyDescriptor> getFamilies()
int getNumFamilies()
TableDescriptor setFamilies(List<FamilyDescriptor> families)
families
- the list of families to addthis
for chain invocationTableDescriptor addFamily(FamilyDescriptor family)
family
- this
for chain invocationTableDescriptor clone()
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.