Segment.ExcludedRegion
columns, compoundPredicateList, constrainedColumnsBitKey, excludedRegions, measure, predicates, star
Constructor and Description |
---|
SegmentWithData(Segment segment,
SegmentDataset data,
SegmentAxis[] axes)
Creates a SegmentWithData from an existing Segment.
|
Modifier and Type | Method and Description |
---|---|
protected void |
describeAxes(StringBuilder buf,
int i,
boolean values) |
int |
getCellCount()
Returns the number of cells in this Segment, deducting cells in
excluded regions.
|
Object |
getCellValue(Object[] keys)
Retrieves the value at the location identified by
keys . |
SegmentDataset |
getData()
Returns the data set.
|
getColumns, getCompoundPredicateList, getConstrainedColumnsBitKey, getExcludedRegions, getHeader, getStar, isExcluded, matches, print, toString
public SegmentWithData(Segment segment, SegmentDataset data, SegmentAxis[] axes)
segment
- Segment (without data)data
- Data setprotected void describeAxes(StringBuilder buf, int i, boolean values)
describeAxes
in class Segment
public Object getCellValue(Object[] keys)
keys
.
Returns
Util.nullValue
if the cell value
is null (because no fact table rows met those criteria);null
if the value is not supposed to be in this segment
(because one or more of the keys do not pass the axis criteria);make package-private?
public int getCellCount()
This method may return a value which is slightly too low, or occasionally even negative. This occurs when a Segment has more than one excluded region, and those regions overlap. Cells which are in both regions will be counted twice.
public final SegmentDataset getData()
Returns the data set.
WARNING: the returned SegmentDataset reference should not be modified; it is assumed to be invariant.
data
referenceCopyright © 2020 Hitachi Vantara. All rights reserved.