This class is used for comparing n-cubes, generating delta objects that describe the difference.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DELTA_AXES |
|
static java.lang.String |
DELTA_AXES_COLUMNS |
|
static java.lang.String |
DELTA_AXIS_COLUMNS |
|
static java.lang.String |
DELTA_AXIS_META_PUT |
|
static java.lang.String |
DELTA_AXIS_META_REMOVE |
|
static java.lang.String |
DELTA_AXIS_REF_CHANGE |
|
static java.lang.String |
DELTA_AXIS_SORT_CHANGED |
|
static java.lang.String |
DELTA_CELLS |
|
static java.lang.String |
DELTA_CELL_REMOVE |
|
static java.lang.String |
DELTA_COLUMN_ADD |
|
static java.lang.String |
DELTA_COLUMN_CHANGE |
|
static java.lang.String |
DELTA_COLUMN_META_PUT |
|
static java.lang.String |
DELTA_COLUMN_META_REMOVE |
|
static java.lang.String |
DELTA_COLUMN_REMOVE |
|
static java.lang.String |
DELTA_NCUBE |
|
static java.lang.String |
DELTA_NCUBE_META_PUT |
|
static java.lang.String |
DELTA_NCUBE_META_REMOVE |
|
static java.lang.String |
DELTA_TESTS |
Type Params | Return Type | Name and description |
---|---|---|
|
static boolean |
areDeltaSetsCompatible(java.util.Map<java.lang.String, java.lang.Object> branchDelta, java.util.Map<java.lang.String, java.lang.Object> headDelta) findCol == null 1. you have a value not on the axis and there is no default findCol.default && value ! |
<T> |
static java.util.Map<java.lang.String, java.lang.Object> |
getDelta(NCube<T> baseCube, NCube<T> changeCube) Fetch the difference between this cube and the passed in cube. |
|
static java.util.List<Delta> |
getDeltaDescription(NCube newCube, NCube oldCube) Return a list of Delta objects describing the differences between two n-cubes. |
<T> |
static void |
mergeDeltaSet(NCube<T> mergeTarget, java.util.Map<java.lang.String, java.lang.Object> deltaSet) Merge the passed in cell change-set into this n-cube. |
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() |
findCol == null 1. you have a value not on the axis and there is no default findCol.default && value != null 1. default column is being added - skip because default already exists 2. value not found but landing on default
Fetch the difference between this cube and the passed in cube. The two cubes must have the same number of axes
with the same names. If those conditions are met, then this method will return a Map with keys for each delta
type.
The key DELTA_AXES, contains the non-column differences between the axes. First, it contains a Map of axis
name (case-insensitively) to a Map that records the differences. This map may contain the key
DELTA_AXIS_SORT_CHANGED, and if so, the associated value is the new int sort order for the axis. This map may
also contain the key DELTA_AXIS_REF_CHANGE. If that key is present, then there is a reference axis difference,
and all of the keys on the associated Map are the reference axis settings (and transform settings).
The key DELTA_AXES_COLUMNS, contains the column differences. The value associated to this key is a Map, that
maps axis name (case-insensitively) to a Map where the key is a column and the associated value is
either the 'true' (new) or false (if it should be removed).
The key DELTA_CELLS, will have an associated value that is a MapbaseCube
- NCube considered the originalchangeCube
- NCube proposing new changes
Return a list of Delta objects describing the differences between two n-cubes.
oldCube
- NCube to compare 'this' n-cube toMerge the passed in cell change-set into this n-cube. This will apply all of the cell changes in the passed in change-set to the cells of this n-cube, including adds and removes.
mergeTarget
- NCube that has a change-set being merged into it.deltaSet
- Map containing cell change-set. The cell change-set contains cell coordinates
mapped to the associated value to set (or remove) for the given coordinate.