public class ColumnAuditor extends Object
RepositoryAdmin's
getColumnAuditors method) contains captured* or discovered** metadata pertaining to a specific
Column Qualifier actively stored in HBase as part of a Column Family of a
ColumnManager-included Table.
ColumnAuditor metadata is gathered at runtime as
Mutations are submitted via the
HBase API to any
ColumnManager-included Table.
ColumnAuditor metadata may also be gathered for already-existing
Columns via the method RepositoryAdmin.discoverColumnMetadata(boolean, boolean).| Constructor and Description |
|---|
ColumnAuditor(byte[] columnQualifier)
|
ColumnAuditor(String columnQualifier)
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SchemaEntity other) |
boolean |
equals(Object obj) |
long |
getCellOccurrencesCount()
Get the count of all the cells in all the columns which have this ColumnAuditor's
column-qualifier.
|
long |
getCellOccurrencesTimestamp()
Get timestamp of latest invocation of
column metadata discovery
which incremented cell occurrences count for this ColumnAuditor. |
long |
getColumnOccurrencesCount()
Get the count of rows in the Table in which this ColumnAuditor's column-qualifier appears.
|
long |
getColumnOccurrencesTimestamp()
Get timestamp of latest invocation of
column metadata discovery
which incremented column occurrences count for this ColumnAuditor. |
byte[] |
getColumnQualifier()
Get Column Qualifier.
|
String |
getColumnQualifierAsString()
Get Column Qualifier as a String.
|
long |
getMaxValueLengthFound()
Get the length of the longest value found in HBase for this column.
|
int |
hashCode() |
ColumnAuditor |
setConfiguration(String key,
String value)
Setter for adding configuration entry to configuration map
|
ColumnAuditor |
setValue(byte[] key,
byte[] value)
Setter for adding value entry to value map
|
ColumnAuditor |
setValue(ImmutableBytesWritable key,
ImmutableBytesWritable value)
Setter for adding value entry to value map
|
ColumnAuditor |
setValue(String key,
String value)
Setter for adding value entry to value map
|
String |
toString()
Returns a String in the format "
SchemaEntityType: EntityName"
(e.g., "ColumnFamily: myColumnFamily"). |
public ColumnAuditor(byte[] columnQualifier)
columnQualifier - Column Qualifierpublic ColumnAuditor(String columnQualifier)
columnQualifier - Column Qualifierpublic final ColumnAuditor setValue(String key, String value)
key - Value keyvalue - Value valuepublic final ColumnAuditor setValue(byte[] key, byte[] value)
key - Value keyvalue - Value valuepublic final ColumnAuditor setValue(ImmutableBytesWritable key, ImmutableBytesWritable value)
key - Value keyvalue - Value valuepublic final ColumnAuditor setConfiguration(String key, String value)
key - Configuration keyvalue - Configuration valuepublic long getMaxValueLengthFound()
Mutation,
or in the process of
column metadata discovery).
MaxValueLengthFound is never
decremented, even when the longest value for the column is deleted from HBase, so the
MaxValueLengthFound actually represents the maximum length EVER recorded for the value of a
specific column, not necessarily the longest value CURRENTLY stored in HBase for the column.public long getColumnOccurrencesCount()
column discovery has not been run.column discovery has not been runpublic long getColumnOccurrencesTimestamp()
column metadata discovery
which incremented column occurrences count for this ColumnAuditor.discovery invocation
which incremented column occurrences count for this ColumnAuditor
ColumnAuditor; returns 0 if
column discovery has not been runpublic long getCellOccurrencesCount()
column discovery has not been run. For a complete count of all cells, column discovery
must be run with the includeAllCells parameter set to true.column discovery has not been runpublic long getCellOccurrencesTimestamp()
column metadata discovery
which incremented cell occurrences count for this ColumnAuditor.discovery invocation
which incremented cell occurrences count for this ColumnAuditor
ColumnAuditor; returns 0 if
column discovery has not been runpublic byte[] getColumnQualifier()
public String getColumnQualifierAsString()
public int compareTo(SchemaEntity other)
compareTo in interface Comparable<SchemaEntity>Copyright © 2016. All rights reserved.