|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.DenseSegmentDataset
mondrian.rolap.agg.DenseNativeSegmentDataset
mondrian.rolap.agg.DenseDoubleSegmentDataset
class DenseDoubleSegmentDataset
Implementation of DenseSegmentDataset that stores
values of type double.
| Field Summary | |
|---|---|
(package private) double[] |
values
|
| Fields inherited from class mondrian.rolap.agg.DenseNativeSegmentDataset |
|---|
nullIndicators |
| Fields inherited from class mondrian.rolap.agg.DenseSegmentDataset |
|---|
axisMultipliers |
| Constructor Summary | |
|---|---|
DenseDoubleSegmentDataset(SegmentAxis[] axes,
double[] values,
BitSet nullIndicators)
Creates a populated DenseDoubleSegmentDataset. |
|
DenseDoubleSegmentDataset(SegmentAxis[] axes,
int size)
Creates a DenseDoubleSegmentDataset. |
|
| Method Summary | |
|---|---|
SegmentBody |
createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
Return an immutable, final and serializable implementation of a SegmentBody in order to cache this dataset. |
boolean |
exists(CellKey pos)
Returns whether there is a value at a given coordinate. |
double |
getDouble(CellKey key)
Returns the value at a given coordinate, as a double. |
Object |
getObject(CellKey pos)
Returns the value at a given coordinate, as an Object. |
Double |
getObject(int offset)
|
protected int |
getSize()
|
SqlStatement.Type |
getType()
Returns the SQL type of the data contained in this dataset. |
void |
populateFrom(int[] pos,
SegmentDataset data,
CellKey key)
|
void |
populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
Sets the value a given ordinal. |
(package private) void |
set(int k,
double d)
|
| Methods inherited from class mondrian.rolap.agg.DenseNativeSegmentDataset |
|---|
isNull, isNull |
| Methods inherited from class mondrian.rolap.agg.DenseSegmentDataset |
|---|
getBytes, getInt, getOffset, getOffset, iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final double[] values
| Constructor Detail |
|---|
DenseDoubleSegmentDataset(SegmentAxis[] axes,
int size)
axes - Segment axes, containing actual column valuessize - Number of coordinates
DenseDoubleSegmentDataset(SegmentAxis[] axes,
double[] values,
BitSet nullIndicators)
axes - Segment axes, containing actual column valuesvalues - Cell values; not copiednullIndicators - Null indicators| Method Detail |
|---|
public double getDouble(CellKey key)
SegmentDatasetdouble.
getDouble in interface SegmentDatasetgetDouble in class DenseSegmentDatasetkey - Coordinate position
public Object getObject(CellKey pos)
SegmentDatasetObject.
getObject in interface SegmentDatasetgetObject in class DenseSegmentDatasetpos - Coordinate position
public Double getObject(int offset)
getObject in class DenseSegmentDatasetpublic boolean exists(CellKey pos)
SegmentDataset
pos - Coordinate position
public void populateFrom(int[] pos,
SegmentDataset data,
CellKey key)
public void populateFrom(int[] pos,
SegmentLoader.RowList rowList,
int column)
SegmentDataset
pos - OrdinalrowList - Row listcolumn - Column of row listpublic SqlStatement.Type getType()
SegmentDataset
void set(int k,
double d)
protected int getSize()
getSize in class DenseSegmentDatasetpublic SegmentBody createSegmentBody(List<Pair<SortedSet<Comparable>,Boolean>> axes)
SegmentDataset
axes - An array with, for each axis, the set of axis values, sorted
in natural order, and a flag saying whether the null value is also
present.
This is supplied by the SegmentLoader.
SegmentBody.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||