Package mondrian.rolap.agg
Interface SegmentDataset
A
SegmentDataset holds the values in a segment.- Since:
- 21 March, 2002
- Author:
- jhyde
-
Method Summary
Modifier and TypeMethodDescriptioncreateSegmentBody(List<Pair<SortedSet<Comparable>, Boolean>> axes) Return an immutable, final and serializable implementation of a SegmentBody in order to cache this dataset.booleanReturns whether there is a value at a given coordinate.doublegetBytes()Returns the number of bytes occupied by this dataset.doubleReturns the value at a given coordinate, as adouble.intReturns the value at a given coordinate, as anint.Returns the value at a given coordinate, as anObject.getType()Returns the SQL type of the data contained in this dataset.booleanReturns whether the cell at a given coordinate is null.voidpopulateFrom(int[] pos, SegmentDataset data, CellKey key) voidpopulateFrom(int[] pos, SegmentLoader.RowList rowList, int column) Sets the value a given ordinal.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getObject
Returns the value at a given coordinate, as anObject.- Parameters:
pos- Coordinate position- Returns:
- Value
-
getInt
Returns the value at a given coordinate, as anint.- Parameters:
pos- Coordinate position- Returns:
- Value
-
getDouble
Returns the value at a given coordinate, as adouble.- Parameters:
pos- Coordinate position- Returns:
- Value
-
isNull
Returns whether the cell at a given coordinate is null.- Parameters:
pos- Coordinate position- Returns:
- Whether cell value is null
-
exists
Returns whether there is a value at a given coordinate.- Parameters:
pos- Coordinate position- Returns:
- Whether there is a value
-
getBytes
double getBytes()Returns the number of bytes occupied by this dataset.- Returns:
- number of bytes
-
populateFrom
-
populateFrom
Sets the value a given ordinal.- Parameters:
pos- OrdinalrowList- Row listcolumn- Column of row list
-
getType
SqlStatement.Type getType()Returns the SQL type of the data contained in this dataset.- Returns:
- A value of SqlStatement.Type
-
createSegmentBody
Return an immutable, final and serializable implementation of a SegmentBody in order to cache this dataset.- Parameters:
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 theSegmentLoader.- Returns:
- A
SegmentBody.
-