|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.db2.wrapper.SqlqgBaseClass
com.ibm.db2.wrapper.Server
com.ibm.db2.wrapper.UnfencedServer
com.ibm.db2.wrapper.UnfencedGenericServer
The UnfencedGenericServer class is a subclass of the Server class and is the
abstract base class for all nonrelational data source server functionality that operates
in the unfenced (trusted) process space. This class is responsible for validation
and for performing the query planning.
Usage:
The wrapper must implement a subclass of the UnfencedGenericServer class.
This class is instantiated by the wrapper in the createServer
method of the wrapper-specific subclass of the UnfencedGenericWrapper
class.
Constructor Summary | |
protected |
UnfencedGenericServer(java.lang.String name,
UnfencedGenericWrapper wrapper)
Construct a UnfencedGenericServer object for the specified wrapper with the specified name. |
Method Summary | |
protected RemoteUser |
createRemoteUser(java.lang.String userName)
Instantiate an appropriate RemoteUser subclass for this data source server. |
Reply |
createReply(Request request)
Create a new empty Reply object for the given Request. |
float |
getSelectivity(PredicateList predicateList)
Calculate the selectivity of a list of predicates. |
protected Reply |
planRequest(Request request)
Analyze a proposed plan and determine what part of the plan (if any) can be pushed down to the remote data source. |
Methods inherited from class com.ibm.db2.wrapper.UnfencedServer |
findNickname, insertRemoteFunction, insertRemoteFunction, isReservedFunctionOption, setMyDefaultRemoteFunctionMappings, verifyMyAlterServerInfo, verifyMyFunctionMappingInfo, verifyMyRegisterServerInfo |
Methods inherited from class com.ibm.db2.wrapper.Server |
createNickname, destroy, findRemoteUser, getInfo, getName, getType, getVersion, getWrapper, initializeMyServer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UnfencedGenericServer(java.lang.String name, UnfencedGenericWrapper wrapper)
name
- The name of the data source server.wrapper
- The wrapper object that contains the data source server.UnfencedGenericWrapper
,
UnfencedServer
Method Detail |
protected RemoteUser createRemoteUser(java.lang.String userName) throws java.lang.Exception
UnfencedGenericRemoteUser
class.
The wrapper can implement this method in the wrapper-specific
data source server subclass. If a wrapper-specific subclass of the
UnfencedGenericRemoteUser
class is implemented, this method must also
be implemented.
createRemoteUser
in class Server
userName
- The name of the remote user mapping to be created and that is
specified in the CREATE USER MAPPING statement.
java.lang.Exception
- if a new RemoteUser instance cannot be created.RemoteUser
public final Reply createReply(Request request) throws java.lang.Exception
planRequest
method
invokes this method to create the Reply objects.
request
- The Request object that the Reply object is created for.
java.lang.Exception
- if the method fails.Request
,
Reply
public float getSelectivity(PredicateList predicateList) throws java.lang.Exception
predicateList
- The PredicateList instance.
java.lang.Exception
- if the method fails.PredicateList
protected Reply planRequest(Request request) throws java.lang.Exception
request
- The Request object that contains the planned query.
java.lang.Exception
- if the method fails.Request
,
Reply
|
IBM DB2 Information Integrator Java API Reference for Developing Wrappers |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.