|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.storage.olap.OLAPUtil
public class OLAPUtil
OLAPUtil is a utility class which provides methods that perform some common functions that may be useful in conjunction with the various com.sas.storage.olap interfaces.
| Field Summary | |
|---|---|
static boolean[] |
EMPTY_BOOLEAN_ARRAY
|
static java.lang.Object[] |
EMPTY_OBJECT_ARRAY
|
static java.lang.String[] |
EMPTY_STRING_ARRAY
|
static TupleInterface[] |
EMPTY_TUPLE_ARRAY
|
| Method Summary | |
|---|---|
static int |
calculateCellOrdinal(ResultSetMetadataInterface resultSetMetadata,
int[] coordinates)
Calculates a cell ordinal based on a set of tuple coordinates. |
static void |
calculateMinMaxCoordinates(TupleInterface[] tuples)
Calculate the minimum and maximum coordinate of each element in the list of given tuples. |
static void |
calculateSpan(TupleInterface[] tuples)
Calculate the Span and span depth value for an element in a array of tuples. |
static int[] |
calculateTupleCoordinates(ResultSetMetadataInterface resultSetMetadata,
int cellOrdinal)
Calculates tuple coordinates based on a cell ordinal. |
static TupleElementInterface[] |
getTupleElementsForLevel(int level,
TupleInterface[] tuples,
boolean includeDuplicates,
int count)
This method will return all of the tupleElements that map to a given level. |
| Field Detail |
|---|
public static final java.lang.String[] EMPTY_STRING_ARRAY
public static final java.lang.Object[] EMPTY_OBJECT_ARRAY
public static final boolean[] EMPTY_BOOLEAN_ARRAY
public static final TupleInterface[] EMPTY_TUPLE_ARRAY
| Method Detail |
|---|
public static int calculateCellOrdinal(ResultSetMetadataInterface resultSetMetadata,
int[] coordinates)
throws OLAPException
resultSetMetadata - The ResultSetMetadataInterface object that should be used when calculating the cell ordinal.coordinates - An array of tuple coordinates marking the cell. These coordinates should be supplied
in the same order as the axes.
OLAPException
public static int[] calculateTupleCoordinates(ResultSetMetadataInterface resultSetMetadata,
int cellOrdinal)
throws OLAPException
resultSetMetadata - The ResultSetMetadataInterface object that should be used when calculating the tuple coordinates.cellOrdinal - The ordinal which identifies the cell at the specified coordinates.
OLAPException
public static void calculateMinMaxCoordinates(TupleInterface[] tuples)
throws OLAPException
tuples - Calculate the min/max coordinate based on the tuples passed in
OLAPException
public static TupleElementInterface[] getTupleElementsForLevel(int level,
TupleInterface[] tuples,
boolean includeDuplicates,
int count)
throws OLAPException
level - An integer which identifies the level to be scannedtuples - An array of tuples on which to apply the searchincludeDuplicates - Determines whether a tupleElement with the same name as the previous element should
be returned as a separate entry in the arraycount - The maximum number of tupleElements to return. A value of -1 will return all of the tupleElements
for the specified level.
OLAPException
public static void calculateSpan(TupleInterface[] tuples)
throws OLAPException
tuples - TupleElements of the tuples to calculate the span for.
OLAPException
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||