@groovy.transform.CompileStatic class Column extends java.lang.Object
Holds the value of a 'column' on an axis. This class exists in order to allow additional columns to be inserted onto an axis, without having to "move" the existing cells. Furthermore, for some axis types (String), it is often better for display purposes to use the display order, as opposed to it's sort order (e.g., months-of-year, days-of-week) for display.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_VALUE |
|
static java.lang.String |
NAME |
|
private int |
displayOrder |
|
protected long |
id |
|
protected java.util.Map<java.lang.String, java.lang.Object> |
metaProps |
|
private static java.util.concurrent.ConcurrentMap |
primitives |
|
private java.lang.Comparable |
value |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addMetaProperties(java.util.Map<java.lang.String, java.lang.Object> allAtOnce) Add a Map of meta properties all at once. |
|
void |
clearMetaProperties() Remove all meta properties associated to this Column. |
|
int |
compareTo(java.lang.Comparable that) |
|
boolean |
equals(java.lang.Object that) |
|
java.lang.String |
getColumnName() Get the optional name of a column. |
|
int |
getDisplayOrder() |
|
long |
getId()
|
|
java.util.Map<java.lang.String, java.lang.Object> |
getMetaProperties() @return Map (case insensitive keys) containing meta (additional) properties for the n-cube. |
|
java.lang.Object |
getMetaProperty(java.lang.String key) Fetch the value associated to the passed in Key from the MetaProperties (if any exist). |
|
java.lang.Comparable |
getValue() @return Comparable value of the column. |
|
java.lang.Comparable |
getValueThatMatches()
|
|
int |
hashCode() |
|
private java.lang.Comparable |
internValue(java.lang.Comparable value) Intern the passed in value. |
|
boolean |
isDefault()
|
|
java.lang.Object |
removeMetaProperty(java.lang.String key) Remove a meta-property entry |
|
void |
setColumnName(java.lang.String name) Set the optional name of a column. |
|
protected void |
setDisplayOrder(int order) |
|
protected void |
setId(long id) |
|
java.lang.Object |
setMetaProperty(java.lang.String key, java.lang.Object metaPropValue) Set (add / overwrite) a Meta Property associated to this Column. |
|
protected void |
setValue(java.lang.Comparable v) Set the value of a column. |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a Map of meta properties all at once.
allAtOnce
- Map of meta properties to addRemove all meta properties associated to this Column.
Get the optional name of a column. Since names are optional they are stored within meta-properties. Any column used on any type of axis can have a name.
Fetch the value associated to the passed in Key from the MetaProperties (if any exist). If none exist, null is returned.
Intern the passed in value. Collapses (folds) equivalent instances into same instance.
value
- Object to intern (if possible)
Remove a meta-property entry
Set the optional name of a column. Since names are optional they are stored within meta-properties. Any column used on any type of axis can have a name.
name
- String name for column.Set (add / overwrite) a Meta Property associated to this Column.
key
- String key name of meta propertymetaPropValue
- Object value to associate to keySet the value of a column.
v
- Comparable instance to store as the column value.