|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoMedDataServer
FarragoMedDataServer defines an interface representing a server instance
accessed via a FarragoMedDataWrapper
.
Field Summary | |
---|---|
static String |
PROP_SERVER_NAME
keyword for NAME in server properties list |
static String |
PROP_SERVER_TYPE
keyword for TYPE in server properties list |
static String |
PROP_SERVER_VERSION
keyword for VERSION in server properties list |
Method Summary | |
---|---|
FarragoMedNameDirectory |
getNameDirectory()
Gets a FarragoMedNameDirectory corresponding to this server. |
Object |
getRuntimeSupport(Object param)
Gets an object needed for runtime support. |
FarragoMedColumnSet |
newColumnSet(String[] localName,
Properties tableProps,
FarragoTypeFactory typeFactory,
RelDataType rowType,
Map<String,Properties> columnPropMap)
Creates an instance of a FarragoMedColumnSet corresponding to row data identified by properties rather than container name. |
void |
registerRelMetadataProviders(ChainedRelMetadataProvider chain)
Gives this wrapper a chance to register one or more RelMetadataProvider s in the chain which will be used to answer
relational expression metadata queries during optimization. |
void |
registerRules(RelOptPlanner planner)
Gives this wrapper a chance to register any special optimization rules. |
void |
releaseResources()
Gives this wrapper a chance to release any resources. |
void |
setLoopbackDataSource(DataSource loopbackDataSource)
Sets a loopback DataSource which can be used to issue internal SQL queries against the containing DBMS. |
Methods inherited from interface org.eigenbase.util.ClosableAllocation |
---|
closeAllocation |
Field Detail |
---|
static final String PROP_SERVER_TYPE
static final String PROP_SERVER_VERSION
static final String PROP_SERVER_NAME
Method Detail |
---|
void setLoopbackDataSource(DataSource loopbackDataSource)
loopbackDataSource
- a DataSource for establishing a loopback
connection into Farrago, or null if loopback connections are not
available in the current contextFarragoMedNameDirectory getNameDirectory() throws SQLException
SQLException
- if directory access is unsuccessful (but not if
directory access is unsupported)FarragoMedColumnSet newColumnSet(String[] localName, Properties tableProps, FarragoTypeFactory typeFactory, RelDataType rowType, Map<String,Properties> columnPropMap) throws SQLException
localName
- the qualified name to assign to the column set within
Farrago; this should NOT be used for finding the actual data, since it
can be set arbitrarily by the caller; instead, it should be used to
implement the RelOptTable.getQualifiedName() method, and can be useful
for correlation during debuggingtableProps
- properties to use for data location and accesstypeFactory
- FarragoTypeFactory to use for defining typesrowType
- type to impose on the rows of this column set (including
column names and types), or null to infer row type; if this is non-null,
it must be saved for use by the getRowType() returned from
FarragoMedColumnSetcolumnPropMap
- map from column name to column-specific Properties;
this is optional and may only be specified when rowType is also specified
(the field names in rowType are used as the keys for columnPropMap)
SQLException
- if data access is unsuccessfulObject getRuntimeSupport(Object param) throws SQLException
param
- parameter supplied at runtime
SQLException
void registerRules(RelOptPlanner planner)
planner
- the planner in which the rules should be registeredvoid registerRelMetadataProviders(ChainedRelMetadataProvider chain)
RelMetadataProvider
s in the chain which will be used to answer
relational expression metadata queries during optimization. Wrappers
which define their own relational expressions will generally need to
supply corresponding metadata providers.
chain
- receives wrappers's custom providers, if anyvoid releaseResources()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |