|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.storage.olap.embedded.Axis
This implementation is designed for the simple definition of axes in a multidimensional ResultSet. The axes are stored in memory within the model. The axis is the root of metadata information for the multidimensional result set. Each result set contains n axes that define the metadata in more detail. The two main components of an axis are the dimensions and the tuples. The dimensions contained on the axis are said to be projected onto the axis. A tuple is the element that combines members from each dimension that is projected onto the axis. In this case where a connection to the metadata does not exist the information about the dimension and the member is not available or minimal.
AxisInterface,
TupleInterface,
ResultSetMetadata| Field Summary |
| Fields inherited from interface com.sas.storage.olap.AxisInterface |
CACHE_COUNT, CHAPTERS_AXIS, COLUMNS_AXIS, PAGES_AXIS, ROWS_AXIS, SECTIONS_AXIS, SLICERS_AXIS, START_CACHE_INDEX |
| Constructor Summary | |
Axis(int axisIndex)
Create an axis based on the index. |
|
Axis(int axisIndex,
String[] axisHeaders,
TupleInterface[] tuples)
Create a new Axis |
|
| Method Summary | |
void |
addTuple(int index,
TupleInterface tuple)
Add a tuple at the specified index. |
void |
addTuple(TupleInterface tuple)
Append a tuple. |
TupleInterface[] |
asTupleArray(List list)
|
String[] |
getAxisHeaders()
Return the axis headers for this axis |
int |
getAxisNumber()
Returns the axis number |
String[] |
getDimensionNames()
Return the an array of names of all the dimensions projected on the axis. |
String[] |
getHierarchyNames()
Return the Hierarchy names set on this axis |
int |
getMaximumTupleDepth()
Return the number of labels associated with each tuple. |
ResultSetMetadataInterface |
getResultSetMetadata()
Return ResultSetMetaData for this axis |
TupleInterface |
getTuple(int index)
Returns the tuple at given index associated with the axis |
int |
getTupleCount()
Returns the number of tuples associated with the axis |
TupleInterface[] |
getTuples(int index,
int count)
Returns the tuples associated with the axis |
String[] |
getUniqueLevelNames()
Get the uniqueLevel names |
TupleInterface |
removeTuple(int index)
Remove a tuple at the specified index. |
void |
setAxisHeaders(String[] labels)
Replace the axis header labels for this axis |
void |
setDimensionNames(String[] dimensionNames)
Replace all the dimension names with the dimension names passed in |
void |
setHierarchyNames(String[] hierarchyNames)
Set the hierarchy names for this axis |
void |
setResultSetMetadata(ResultSetMetadataInterface rsm)
Set the resultset metadata for this axis. |
void |
setTuple(int index,
TupleInterface tuple)
Replace the tuple at the given index |
void |
setTuples(int startIndex,
int endIndex,
TupleInterface[] tuples)
Replace the tuples associated with the axis |
void |
setUniqueLevelNames(String[] levelNames)
Set the unique level names on the axis |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
| Constructor Detail |
public Axis(int axisIndex)
throws OLAPException
AxisInterface.COLUMNS_AXIS axis, followed by AxisInterface.ROWS_AXIS,
then PAGESAXISAxisInterface.PAGES_AXIS, etc. and the last axis is
AxisInterface.SLICERS_AXISaxisIndex - axis index of the axisOLAPException - if the axis cannot be created
public Axis(int axisIndex,
String[] axisHeaders,
TupleInterface[] tuples)
throws OLAPException
axisIndex - axis number for this axisaxisHeaders - headers for the axis that identifies the row/column members on this axistuples - that identify the row/column. A null tuple will not be added.OLAPException - if the axis cannot be created| Method Detail |
public void setDimensionNames(String[] dimensionNames)
throws OLAPException
dimensionNames - dimension names on the axis
public void setResultSetMetadata(ResultSetMetadataInterface rsm)
throws OLAPException
rsm - resltsetmetadatafor this axisOLAPException - if the resultsetmetadata cannot be set
public String[] getDimensionNames()
throws OLAPException
getDimensionNames in interface AxisInterfaceOLAPException -
public TupleInterface[] getTuples(int index,
int count)
throws OLAPException
getTuples in interface AxisInterfaceindex - start index. index should be less than the number of tuples.count - number of tuplesOLAPException -
public TupleInterface getTuple(int index)
throws OLAPException
getTuple in interface AxisInterfaceindex - start index. index should be less than the number of tuples.OLAPException -
public void addTuple(TupleInterface tuple)
throws OLAPException
tuple - to addOLAPException - if the tuple cannot be added
public void addTuple(int index,
TupleInterface tuple)
throws OLAPException
index - insert the tuple at the specified zero based index.tuple - add a non null tupleOLAPException - if the tuple cannot be added
public void setTuple(int index,
TupleInterface tuple)
throws OLAPException
index - replace the tuple at this index. Index should be greater than or equal to
zero and less than the current tuple count.tuple - associated with the axis that is to be replacedOLAPException -
public void setTuples(int startIndex,
int endIndex,
TupleInterface[] tuples)
throws OLAPException
startIndex - set the tuples beginning at this index. startIndex should be in the range of
zero and current tuple countendIndex - set the tuples upto endIndex, exclusive. endIndex should be greater than
startIndex and less than or equal to current tuple counttuples - An array of tuples associated with the axisOLAPException -
public TupleInterface removeTuple(int index)
throws OLAPException
index - remove the tuple at this index. Index should be between 0 and the length
of tuple.OLAPException - if the tuple cannot be removedpublic int getTupleCount()
getTupleCount in interface AxisInterface
public int getMaximumTupleDepth()
throws OLAPException
getMaximumTupleDepth in interface AxisInterface
public String[] getAxisHeaders()
throws OLAPException
getAxisHeaders in interface AxisInterface
public void setAxisHeaders(String[] labels)
throws OLAPException
labels - Axis header labels for the axisOLAPException -
public String[] getHierarchyNames()
throws OLAPException
getHierarchyNames in interface AxisInterfaceOLAPException - AxisInterface.getHierarchyNames()
public void setHierarchyNames(String[] hierarchyNames)
throws OLAPException
hierarchyNames - and array of hierarchy names for the axisOLAPException -
public String[] getUniqueLevelNames()
throws OLAPException
getUniqueLevelNames in interface AxisInterfaceAxisInterface.getUniqueLevelNames()
public void setUniqueLevelNames(String[] levelNames)
throws OLAPException
levelNames - an array of level namesOLAPException -
public ResultSetMetadataInterface getResultSetMetadata()
throws OLAPException
getResultSetMetadata in interface AxisInterfaceOLAPException -
public int getAxisNumber()
throws OLAPException
getAxisNumber in interface AxisInterfaceOLAPException - public TupleInterface[] asTupleArray(List list)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||