public class ColumnDefinition extends Object
RepositoryAdmin
add,
get,
and delete methods) contains administrator-maintained settings pertaining to a specific
Column Qualifier within a Column Family of a
ColumnManager-included Table;ColumnDefinitionsEnforced setting enabled, then (a) any Column Qualifier
submitted in a Put to that Column Family
must correspond to an existing ColumnDefinition, and (b) the corresponding
Column value submitted must pass all validations (if any) stipulated by the
ColumnDefinition.| Constructor and Description |
|---|
ColumnDefinition(byte[] columnQualifier) |
ColumnDefinition(String columnQualifier) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SchemaEntity other) |
boolean |
equals(Object obj) |
long |
getColumnLength()
Get the defined column length (i.e., the maximum length permitted for any submitted value for
this column when
ColumnDefinitionsEnforced is set to true for the column's Column Family); if
returned value is 0 (the default), NO length validation of column values will be performed. |
byte[] |
getColumnQualifier()
Get Column Qualifier.
|
String |
getColumnQualifierAsString()
Get Column Qualifier as a String.
|
String |
getColumnValidationRegex()
Get the defined column regex (i.e., the regular expression that any submitted value for this
column must match when
ColumnDefinitionsEnforced is set to true for the column's Column Family); if
returned value is blank (the default), NO regular expression validation of column values will
be performed. |
int |
hashCode() |
ColumnDefinition |
setColumnLength(long columnLength)
Set the defined column length (i.e., the maximum length permitted for any submitted value for
this column when
ColumnDefinitionsEnforced is set to true for the column's Column Family);
setting the value to 0 (the default) will result in NO length validation of column values being
performed. |
ColumnDefinition |
setColumnValidationRegex(String regexString)
Set the column's validation regex (i.e., the regular expression that any submitted value for
this column must match when
ColumnDefinitionsEnforced is set to true for the column's Column Family);
setting the value to blank (the default) will result in NO regular expression validation of
column values being performed. |
String |
toString()
Returns a String in the format "
SchemaEntityType: EntityName"
(e.g., "ColumnFamily: myColumnFamily"). |
public ColumnDefinition(byte[] columnQualifier)
columnQualifier - Column Qualifierpublic ColumnDefinition(String columnQualifier)
columnQualifier - Column Qualifierpublic ColumnDefinition setColumnLength(long columnLength)
ColumnDefinitionsEnforced is set to true for the column's Column Family);
setting the value to 0 (the default) will result in NO length validation of column values being
performed.columnLength - length setting defined for columnpublic long getColumnLength()
ColumnDefinitionsEnforced is set to true for the column's Column Family); if
returned value is 0 (the default), NO length validation of column values will be performed.public ColumnDefinition setColumnValidationRegex(String regexString)
ColumnDefinitionsEnforced is set to true for the column's Column Family);
setting the value to blank (the default) will result in NO regular expression validation of
column values being performed.regexString - regular expression validation-string defined for columnpublic String getColumnValidationRegex()
ColumnDefinitionsEnforced is set to true for the column's Column Family); if
returned value is blank (the default), NO regular expression validation of column values will
be performed.public byte[] getColumnQualifier()
public String getColumnQualifierAsString()
public int compareTo(SchemaEntity other)
compareTo in interface Comparable<SchemaEntity>Copyright © 2016. All rights reserved.