|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.execution2.AbstractIQResultSetMetaData
public abstract class AbstractIQResultSetMetaData
Abstract implementation of IQResultSetMetadata interface. An abstract
implementation is provided, so that we can provide a reasonable default
implementation of the IQResultSetMetadata
interface for both
OLAP and relational result sets.
Constructor Summary | |
---|---|
protected |
AbstractIQResultSetMetaData()
|
protected |
AbstractIQResultSetMetaData(BusinessQuery bq)
|
Method Summary | |
---|---|
protected void |
addStringToDataItem(java.lang.String string,
DataItem dataItem)
|
java.util.Map<java.lang.Integer,java.util.List<DrillPath>> |
getAllDrillPaths()
The IQResultSetMetaData implementation of #getAllDrillPaths()
throws an UnsupportedOperationException . |
DataItem |
getDataItem(java.lang.Object uniquePhysicalObject)
Returns the data item associated with this physical object. |
java.util.List<DataItem> |
getDataItems()
Returns the list of data items used to create the result set. |
java.util.List<DrillPath> |
getDrillPaths(DataItem di)
The IQResultSetMetaData implementation of #getDrillPaths(DataItem)
throws an UnsupportedOperationException . |
java.util.List<DrillPath> |
getDrillPaths(int axis)
The IQResultSetMetaData implementation of #getDrillPaths(int)
throws an UnsupportedOperationException . |
java.util.List<java.lang.String> |
getUniqueNames()
Returns a list of unique names are included in this result set. |
boolean |
isDrillable()
The AbstractIQResultSetMetadata implementation of #isDrillable
returns false. |
protected DataItem |
stringToDataItem(java.lang.String name)
|
Constructor Detail |
---|
protected AbstractIQResultSetMetaData()
protected AbstractIQResultSetMetaData(BusinessQuery bq)
bq
- Method Detail |
---|
@NonNull public java.util.List<java.lang.String> getUniqueNames()
IQResultSetMetaData
Example 1 (OLAP):
Below defines the string object in this list for a unique level name for the hierarchy of Product and level of Product Group.
[Product].[Product_Category]
Example 2 (OLAP):
Below defines the string object in this list for the Measures labeled "Sales Sum".
[Measures].[SALES]
getUniqueNames
in interface IQResultSetMetaData
IQResultSetMetaData.getUniqueNames()
@NonNull public java.util.List<DataItem> getDataItems()
IQResultSetMetaData
getDataItems
in interface IQResultSetMetaData
DataItem
IQResultSetMetaData.getDataItems()
protected void addStringToDataItem(java.lang.String string, DataItem dataItem)
protected DataItem stringToDataItem(java.lang.String name)
public DataItem getDataItem(java.lang.Object uniquePhysicalObject)
IQResultSetMetaData
getDataItem
in interface IQResultSetMetaData
uniquePhysicalObject
- which can be a String object (either tuple unique name,
level name, or member name), a MeasureInterface object, a HierarchyInterface object, or
some other, yet to be defined, object.
DataItem
associated with this physical objectIQResultSetMetaData.getDataItem(java.lang.Object)
public boolean isDrillable()
AbstractIQResultSetMetadata
implementation of #isDrillable
returns false.
Subclasses that support drilling will return true.
Return true if this result set metadata supports drilling. If drilling is not supported,
methods such getDrillPaths() will throw an UnsupportedOperationException
.
isDrillable
in interface IQResultSetMetaData
ExecutionException
{@link
- UnsupportedOperationException} if the subclass does not support drillingpublic java.util.List<DrillPath> getDrillPaths(int axis) throws ExecutionException
IQResultSetMetaData
implementation of #getDrillPaths(int)
throws an UnsupportedOperationException
.
Subclasses that support drilling should provide their own implementation.
Return a list of drill path objects, representing the user's current drill state into the result set.
getDrillPaths
in interface IQResultSetMetaData
axis
- the axis as defined in AxisInterface
ExecutionException
{@link
- UnsupportedOperationException} if the subclass does not support drillingpublic java.util.List<DrillPath> getDrillPaths(DataItem di) throws ExecutionException
IQResultSetMetaData
implementation of #getDrillPaths(DataItem)
throws an UnsupportedOperationException
.
Subclasses that support drilling should provide their own implementation.
Return the list of drill paths for this data item.
getDrillPaths
in interface IQResultSetMetaData
DrillPath
objects.
ExecutionException
{@link
- UnsupportedOperationException} if the subclass does not support drillingpublic java.util.Map<java.lang.Integer,java.util.List<DrillPath>> getAllDrillPaths() throws ExecutionException
IQResultSetMetaData
implementation of #getAllDrillPaths()
throws an UnsupportedOperationException
.
Subclasses that support drilling should provide their own implementation.
Return a map, in which the key is the axis and the value is a list of drill path objects for each axis.
getAllDrillPaths
in interface IQResultSetMetaData
ExecutionException
{@link
- UnsupportedOperationException} if the subclass does not support drilling
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |