public class TableDescriptorImpl extends java.lang.Object implements TableDescriptor
| Constructor and Description |
|---|
TableDescriptorImpl() |
TableDescriptorImpl(boolean insertionOrder) |
TableDescriptorImpl(org.apache.hadoop.fs.Path tablePath) |
| Modifier and Type | Method and Description |
|---|---|
TableDescriptorImpl |
addFamily(FamilyDescriptor family)
Appends a FamilyDescriptor to this TableDescriptor.
|
TableDescriptorImpl |
clone()
Creates and returns a copy of this TableDescriptor.
|
boolean |
equals(java.lang.Object obj) |
boolean |
getClientCompression() |
long |
getDeleteTTL() |
java.util.List<FamilyDescriptor> |
getFamilies()
Returns the list of family descriptors for this table.
|
FamilyDescriptor |
getFamily(java.lang.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 |
getMaxValueSizeInMemIndex() |
int |
getNumFamilies()
Returns the number of family descriptors for this table descriptor.
|
org.apache.hadoop.fs.Path |
getPath() |
long |
getSplitSize() |
int |
getStreamDefaultPartitions() |
com.mapr.fs.proto.Dbserver.TableAces.Builder |
getTableAces() |
com.mapr.fs.proto.Dbserver.TableAttr.Builder |
getTableAttr() |
int |
hashCode() |
boolean |
isAutoSplit() |
boolean |
isBulkLoad() |
boolean |
isInsertionOrder() |
boolean |
isStream() |
boolean |
isStreamAutoCreate() |
TableDescriptorImpl |
setAutoSplit(boolean autoSplit)
Sets the tablets to split automatically, or not, if they grow beyond a certain size.
|
TableDescriptorImpl |
setBulkLoad(boolean bulkLoad)
Sets if the table is created with bulk load mode turned on.
|
TableDescriptorImpl |
setClientCompression(boolean val)
Enable/disable client compression for this table.
|
TableDescriptor |
setDeleteTTL(long ttlSec)
Set the number of seconds after which deletes will be purged from the table.
|
TableDescriptorImpl |
setFamilies(java.util.List<FamilyDescriptor> families)
Sets the list of families for this TableDescriptor.
|
TableDescriptorImpl |
setInsertionOrder(boolean insertionOrder)
Sets the map entries to be stored in the order they are added or not to be stored in order.
|
TableDescriptorImpl |
setMaxValueSizeInMemIndex(int valueSz)
Set the size above which values are not cached in the memIndex
|
TableDescriptorImpl |
setPath(org.apache.hadoop.fs.Path tablePath)
Sets the path of this table in MapR FileSystem.
|
TableDescriptorImpl |
setPath(java.lang.String tablePath)
Sets the path of this table in MapR FileSystem.
|
TableDescriptorImpl |
setSplitSize(long splitSizeMB)
Sets the size in mebibytes at which a tablet in this table will split.
|
TableDescriptorImpl |
setStream()
Create this table as Marlin stream.
|
TableDescriptorImpl |
setStreamAutoCreate(boolean autoCreate)
Enable/Disable auto-create of topics.
|
TableDescriptorImpl |
setStreamDefaultPartitions(int numPartitions)
Set default number of partitions for topics in the stream.
|
java.lang.String |
toString() |
public TableDescriptorImpl()
public TableDescriptorImpl(boolean insertionOrder)
public TableDescriptorImpl(org.apache.hadoop.fs.Path tablePath)
public org.apache.hadoop.fs.Path getPath()
getPath in interface TableDescriptorpublic TableDescriptorImpl setPath(java.lang.String tablePath)
TableDescriptorsetPath in interface TableDescriptortablePath - the table paththis for chain invocationpublic TableDescriptorImpl setPath(org.apache.hadoop.fs.Path tablePath)
TableDescriptorsetPath in interface TableDescriptortablePath - the table paththis for chain invocationpublic boolean isInsertionOrder()
isInsertionOrder in interface TableDescriptortrue if the map entries are stored in the order they are added, false
if they are stored in the lexicographical order of their key namepublic TableDescriptorImpl setInsertionOrder(boolean insertionOrder)
TableDescriptorsetInsertionOrder in interface TableDescriptorinsertionOrder - true if the map entries are stored in the order they are addedthis for chain invocationpublic boolean isBulkLoad()
isBulkLoad in interface TableDescriptortrue if the bulk load mode is set on this tablepublic TableDescriptorImpl setBulkLoad(boolean bulkLoad)
TableDescriptorsetBulkLoad in interface TableDescriptorbulkLoad - true if the bulk load mode is to be turned onthis for chain invocationpublic boolean isAutoSplit()
isAutoSplit in interface TableDescriptortrue if a tablet should split automatically if it grows beyond a certain size.public TableDescriptorImpl setAutoSplit(boolean autoSplit)
TableDescriptorsetAutoSplit in interface TableDescriptorautoSplit - true if the split should happen automaticallythis for chain invocationpublic long getSplitSize()
getSplitSize in interface TableDescriptorpublic TableDescriptorImpl setSplitSize(long splitSizeMB)
TableDescriptorsetSplitSize in interface TableDescriptorsplitSizeMB - split size in mebibytesthis for chain invocationpublic FamilyDescriptor getFamily(java.lang.String familyName)
TableDescriptornull if a family by this name does not exist in the TableDescriptor.
Modifying the returned object does not modify this TableDescriptor.getFamily in interface TableDescriptorfamilyName - the family namepublic int getNumFamilies()
TableDescriptorgetNumFamilies in interface TableDescriptorpublic java.util.List<FamilyDescriptor> getFamilies()
TableDescriptorgetFamilies in interface TableDescriptorpublic TableDescriptorImpl setFamilies(java.util.List<FamilyDescriptor> families)
TableDescriptorsetFamilies in interface TableDescriptorfamilies - the list of families to addthis for chain invocationpublic TableDescriptorImpl addFamily(FamilyDescriptor family)
TableDescriptoraddFamily in interface TableDescriptorthis for chain invocationpublic long getDeleteTTL()
public TableDescriptor setDeleteTTL(long ttlSec)
ttlSec - TTL value in secondspublic int getMaxValueSizeInMemIndex()
public TableDescriptorImpl setMaxValueSizeInMemIndex(int valueSz)
valueSz - Size in bytespublic boolean getClientCompression()
true if client compression is enabled for the table.public TableDescriptorImpl setClientCompression(boolean val)
this for chain invocationpublic boolean isStream()
true if this table is a Marlin streampublic TableDescriptorImpl setStream()
this for chain invocationpublic boolean isStreamAutoCreate()
true if this stream allows auto-create of topics.public TableDescriptorImpl setStreamAutoCreate(boolean autoCreate)
autoCreate - true if auto-create of topics is allowed.this for chain invocationpublic int getStreamDefaultPartitions()
public TableDescriptorImpl setStreamDefaultPartitions(int numPartitions)
numPartitions - number of partitionsthis for chain invocationpublic com.mapr.fs.proto.Dbserver.TableAttr.Builder getTableAttr()
public com.mapr.fs.proto.Dbserver.TableAces.Builder getTableAces()
public java.lang.String toString()
toString in class java.lang.Objectpublic TableDescriptorImpl clone()
TableDescriptorclone in interface TableDescriptorclone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object