|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") public interface ResultSetInterface
The ResultSetInterface provides for a common abstraction of relational two dimensional result sets and N-dimensional OLAP result sets.
Additional metadata is also available that is not provided by the underlying
result set. This includes the freshness of the result set getResultSetDate(),
the SAS log generated by the query execution getSASLog(), the computational
locale of the query execution getComputationalLocale(), and other IQ
result set metadata.
A ResultSetInterface object is usually created by executing a
DataSelection using a
QueryConnector.
| Field Summary | |
|---|---|
static java.lang.String |
MULTI_DIMENSIONAL
Returned by SimpleQueryConnector.getResultSetStructure(BusinessQuery)
for multi-dimensional result sets (OLAP or ROLAP) |
static int |
MULTI_DIMENSIONAL_EMBEDDED
Returned by getType()for embedded (in-memory, non-server-connected)
multi-dimensional result set |
static int |
MULTI_DIMENSIONAL_LIVE
Returned by getType() for live (interactive and server connected) multi-dimensional
result sets |
static java.lang.String |
TABULAR
Returned by SimpleQueryConnector.getResultSetStructure(BusinessQuery)
for tabular result sets (relational data) |
static int |
TABULAR_EMBEDDED
Returned by getType()for embedded (in-memory, non-server-connected) tabular result
sets |
static int |
TABULAR_LIVE
Returned by getType()for live (interactive and server connected) tabular result
sets |
| Method Summary | |
|---|---|
abstract void |
close()
Close the result set. |
abstract java.util.Locale |
getComputationalLocale()
Returns the Locale that the query computations were run under (or null if indeterminate). |
abstract com.sas.util.LocalizableString |
getDescriptions(java.lang.String rsid)
Returns the localizable description for this result set. |
abstract IQResultSetMetaData |
getIQMetaData()
Returns the IQ result set metadata. |
abstract IQResultSetMetaData |
getIQMetaData(BusinessQuery businessQuery)
Returns the IQ result set metadata. |
abstract com.sas.util.LocalizableString |
getLabels(java.lang.String rsid)
Returns the localizable label for this result set. |
abstract java.lang.String |
getQuery()
Returns the query string used to retrieve this resultset. |
abstract java.lang.Object |
getResultSet()
Returns the concrete result set object. |
abstract java.util.Date |
getResultSetDate()
Returns the date when the data was last generated. |
abstract java.lang.String |
getSASLog()
Returns the sas log from the most recent result set generation, or null if not available. |
abstract java.lang.String |
getStoredProcessLog()
Returns the SAS log pertaining to stored processes run as part of this query, or null if not set. |
abstract com.sas.iquery.execution.instructions.StpNames |
getStpNames()
Returns the stored process assigned names cache. |
abstract int |
getType()
Returns the type of the result set. |
| Field Detail |
|---|
static final java.lang.String MULTI_DIMENSIONAL
SimpleQueryConnector.getResultSetStructure(BusinessQuery)
for multi-dimensional result sets (OLAP or ROLAP)
static final java.lang.String TABULAR
SimpleQueryConnector.getResultSetStructure(BusinessQuery)
for tabular result sets (relational data)
static final int MULTI_DIMENSIONAL_LIVE
getType() for live (interactive and server connected) multi-dimensional
result sets
static final int TABULAR_LIVE
getType()for live (interactive and server connected) tabular result
sets
static final int TABULAR_EMBEDDED
getType()for embedded (in-memory, non-server-connected) tabular result
sets
static final int MULTI_DIMENSIONAL_EMBEDDED
getType()for embedded (in-memory, non-server-connected)
multi-dimensional result set
| Method Detail |
|---|
void close()
throws ExecutionException
The underlying concrete result set is also closed.
ExecutionException - if an exception occurs during the close
java.lang.String getQuery()
throws ExecutionException
The query string is likely to be specific for the server used and may contain SAS code, SQL, or MDX.
There is no guarantee that this code can simply be re-submitted to the server, as it may depend on a particular state of the server. The query string is intended for information and logging purposes only.
ExecutionException - if an error occurs
java.lang.Object getResultSet()
throws ExecutionException
ResultSet
or OLAPDataSetInterface
ExecutionException
int getType()
throws ExecutionException
ExecutionException - If the type cannot be determined
java.util.Date getResultSetDate()
throws ExecutionException
For queries that must be executed on a database server, this date may not be known until getResultSet() is called. This is true for parameterized queries. For queries with embedded data, this date is unknown if it was not persisted in the embedded data.
null is returned if the date is unknown
ExecutionException - if an error occursgetResultSet()
java.lang.String getStoredProcessLog()
throws ExecutionException
There is no guarantee that the stored process SAS log will be available.
null is returned if the SAS log is unavailable
ExecutionException - if an error occurs
java.lang.String getSASLog()
throws ExecutionException
null if not available.
null is returned if the SAS
log is not available
ExecutionException - if an error occurs
com.sas.util.LocalizableString getLabels(java.lang.String rsid)
throws ExecutionException
rsid - the result set id for a column (if relational) or measure
(if ROLAP or OLAP). This value can be retrieved from the relation's
get column metadata name.
ExecutionException
com.sas.util.LocalizableString getDescriptions(java.lang.String rsid)
throws ExecutionException
rsid - The result set id for a column (if relational) or measure
(if ROLAP or OLAP). This value can be retrieved from the relation's
get column metadata name.
ExecutionExceptionjava.util.Locale getComputationalLocale()
Locale that the query computations were run under (or null if indeterminate).
QueryConnectorInterface.getComputationalLocale(),
BusinessModel.getComputationalLocale()com.sas.iquery.execution.instructions.StpNames getStpNames()
IQResultSetMetaData getIQMetaData()
throws ExecutionException
IQResultSetMetadata contains
additional metadata information, derived from the IQ model, over what is provided
by the concrete result set metadata, either ResultSetMetadata or
ResultSetMetadataInterface. A business query was applied to this result
via the BusinessQueryProviderInterface object
BusinessQueryProviderInterface that is stored in the result set.
business - query being used for this query or null.
IQResultSetMetdata, the IQ derived metadata about this result set
ExecutionException
IQResultSetMetaData getIQMetaData(BusinessQuery businessQuery)
throws ExecutionException
IQResultSetMetadata contains
additional metadata information, derived from the IQ model, over what is provided
by the concrete result set metadata, either ResultSetMetadata or
ResultSetMetadataInterface. A business query should be applied to get the data item
match to the tuple element. If the business query was applied to this result set via the BusinessQueryProviderInterface object
BusinessQueryProviderInterface, then a null can be submitted here.
business - query being used for this query or null.
IQResultSetMetdata, the IQ derived metadata about this result set
ExecutionException
|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||