public class ChangeEvent extends Object implements Comparable<ChangeEvent>
ChangeEventMonitor's various
get methods) contains metadata pertaining to a
structural change made to a component of a
ColumnManager-included Namespace, Table,
or Table component; for example, a change to the "durability" setting of a Table
or the "maxVersions" setting of a Column Family
is captured in the ColumnManager repository as a ChangeEvent. When
ColumnManager is activated, such ChangeEvents
are comprehensively tracked in the ColumnManager repository for all Namespaces and
Tables (and their components) that are
included in ColumnManager processing.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ChangeEvent other) |
byte[] |
getAttributeName()
Get the name of the attribute to which the
ChangeEvent pertains: for example, a
Table attribute name could be "Value__DURABILITY", corresponding to the Table's
durability setting. |
String |
getAttributeNameAsString()
Get the name of the attribute to which the
ChangeEvent pertains: for example, a
Table attribute name could be "Value__DURABILITY", corresponding to the Table's
durability setting. |
byte[] |
getAttributeValue()
Get the new value of the attribute to which the
ChangeEvent pertains: for example, a
Table attribute named "Value__DURABILITY" might have been set to the value "SKIP_WAL". |
String |
getAttributeValueAsString()
Get the new value of the attribute to which the
ChangeEvent pertains: for example, a
Table attribute named "Value__DURABILITY" might have been set to the value "SKIP_WAL". |
String |
getColumnFamilyAsString()
Get the name of the Column Family associated with the Entity to which the
ChangeEvent pertains (if applicable). |
String |
getColumnQualifierAsString()
Get the Column Qualifier associated with the Entity to which the
ChangeEvent
pertains (if applicable). |
byte[] |
getEntityName()
Get the name of the Entity to which the
ChangeEvent pertains. |
String |
getEntityNameAsString()
Get the name of the Entity to which the
ChangeEvent pertains. |
String |
getEntityTypeAsString()
Get the type of the Entity to which the
ChangeEvent pertains (e.g., "Table",
"ColumnFamily", etc.). |
String |
getNamespaceAsString()
Get the name of the Namespace associated with the Entity to which the
ChangeEvent pertains. |
String |
getTableNameAsString()
Get the name of the Table associated with the Entity to which the
ChangeEvent
pertains (if applicable). |
long |
getTimestamp()
Get the timestamp of the
ChangeEvent. |
String |
getTimestampAsString()
Get the timestamp of the
ChangeEvent. |
byte[] |
getUserName()
Get the user name associated with the
ChangeEvent (as designated by the Java
"user.name" property in effect within the session that made the change). |
String |
getUserNameAsString()
Get the user name associated with the
ChangeEvent (as designated by the Java
"user.name" property in effect within the session that made the change). |
String |
toString() |
public String getEntityTypeAsString()
ChangeEvent pertains (e.g., "Table",
"ColumnFamily", etc.).ChangeEvent pertains.public byte[] getEntityName()
ChangeEvent pertains.ChangeEvent pertains.public String getEntityNameAsString()
ChangeEvent pertains.ChangeEvent pertains.public String getNamespaceAsString()
ChangeEvent pertains.ChangeEvent pertains.public String getTableNameAsString()
ChangeEvent
pertains (if applicable).ChangeEvent
pertains (if applicable).public String getColumnFamilyAsString()
ChangeEvent pertains (if applicable).ChangeEvent pertains (if applicable).public String getColumnQualifierAsString()
ChangeEvent
pertains (if applicable).ChangeEvent
pertains (if applicable).public long getTimestamp()
ChangeEvent.ChangeEvent.public String getTimestampAsString()
ChangeEvent.ChangeEvent.public byte[] getUserName()
ChangeEvent (as designated by the Java
"user.name" property in effect within the session that made the change).ChangeEvent.public String getUserNameAsString()
ChangeEvent (as designated by the Java
"user.name" property in effect within the session that made the change).ChangeEvent.public byte[] getAttributeName()
ChangeEvent pertains: for example, a
Table attribute name could be "Value__DURABILITY", corresponding to the Table's
durability setting.public String getAttributeNameAsString()
ChangeEvent pertains: for example, a
Table attribute name could be "Value__DURABILITY", corresponding to the Table's
durability setting.public byte[] getAttributeValue()
ChangeEvent pertains: for example, a
Table attribute named "Value__DURABILITY" might have been set to the value "SKIP_WAL".public String getAttributeValueAsString()
ChangeEvent pertains: for example, a
Table attribute named "Value__DURABILITY" might have been set to the value "SKIP_WAL".public int compareTo(ChangeEvent other)
compareTo in interface Comparable<ChangeEvent>Copyright © 2016. All rights reserved.