|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.relopt.RelOptAbstractTable net.sf.farrago.namespace.impl.MedAbstractColumnSet
public abstract class MedAbstractColumnSet
MedAbstractColumnSet is an abstract base class for implementations of the
FarragoMedColumnSet
interface.
Field Summary | |
---|---|
private SqlAccessType |
allowedAccess
|
private Map<String,Properties> |
columnPropMap
|
private CwmNamedColumnSet |
cwmColumnSet
|
private String[] |
foreignName
|
private String[] |
localName
|
private FarragoPreparingStmt |
preparingStmt
|
private Properties |
tableProps
|
Fields inherited from class org.eigenbase.relopt.RelOptAbstractTable |
---|
name, rowType, schema |
Constructor Summary | |
---|---|
protected |
MedAbstractColumnSet(String[] localName,
String[] foreignName,
RelDataType rowType,
Properties tableProps,
Map<String,Properties> columnPropMap)
Creates a new MedAbstractColumnSet. |
Method Summary | |
---|---|
SqlAccessType |
getAllowedAccess()
Returns the access type of the table |
Map<String,Properties> |
getColumnPropertyMap()
|
CwmNamedColumnSet |
getCwmColumnSet()
|
String[] |
getForeignName()
|
String[] |
getLocalName()
|
SqlMonotonicity |
getMonotonicity(String columnName)
Returns whether a given column is monotonic. |
FarragoPreparingStmt |
getPreparingStmt()
|
String[] |
getQualifiedName()
Obtains an identifier for this table. |
Properties |
getTableProperties()
|
void |
setAllowedAccess(SqlAccessType allowedAccess)
|
void |
setCwmColumnSet(CwmNamedColumnSet cwmColumnSet)
Sets the CwmNamedColumnSet corresponding to this column set. |
void |
setPreparingStmt(FarragoPreparingStmt stmt)
Sets the FarragoPreparingStmt acting on this column set. |
protected RelNode |
toLenientRel(RelOptCluster cluster,
RelNode child,
RelDataType targetRowType,
RelDataType srcRowType)
Converts one RelNode to another RelNode with specified RowType. |
protected RelNode |
toUdxRel(RelOptCluster cluster,
RelOptConnection connection,
String udxSpecificName,
String serverMofId,
RexNode[] args)
Provides an implementation of the toRel interface method in terms of an underlying UDX. |
Methods inherited from class org.eigenbase.relopt.RelOptAbstractTable |
---|
getCollationList, getName, getRelOptSchema, getRowCount, getRowType, setRowType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eigenbase.relopt.RelOptTable |
---|
getCollationList, getRelOptSchema, getRowCount, getRowType, toRel |
Methods inherited from interface org.eigenbase.sql.validate.SqlValidatorTable |
---|
getRowType |
Field Detail |
---|
private final String[] localName
private final String[] foreignName
private Properties tableProps
private Map<String,Properties> columnPropMap
private FarragoPreparingStmt preparingStmt
private CwmNamedColumnSet cwmColumnSet
private SqlAccessType allowedAccess
Constructor Detail |
---|
protected MedAbstractColumnSet(String[] localName, String[] foreignName, RelDataType rowType, Properties tableProps, Map<String,Properties> columnPropMap)
localName
- name of this ColumnSet as it will be known within the
Farrago systemforeignName
- name of this ColumnSet as it is known on the foreign
server; may be null if no meaningful name existsrowType
- row type descriptortableProps
- table-level propertiescolumnPropMap
- column-level properties (map from column name to
Properties object)Method Detail |
---|
public String[] getQualifiedName()
RelOptTable
getQualifiedName
in interface RelOptTable
getQualifiedName
in interface SqlValidatorTable
getQualifiedName
in class RelOptAbstractTable
public String[] getLocalName()
public String[] getForeignName()
public Properties getTableProperties()
public Map<String,Properties> getColumnPropertyMap()
public FarragoPreparingStmt getPreparingStmt()
getPreparingStmt
in interface FarragoQueryColumnSet
public void setPreparingStmt(FarragoPreparingStmt stmt)
FarragoQueryColumnSet
setPreparingStmt
in interface FarragoQueryColumnSet
stmt
- the FarragoPreparingStmt to setpublic void setCwmColumnSet(CwmNamedColumnSet cwmColumnSet)
FarragoQueryColumnSet
setCwmColumnSet
in interface FarragoQueryColumnSet
cwmColumnSet
- the CwmNamedColumnSet, or null if this column set is
not defined in the catalogpublic CwmNamedColumnSet getCwmColumnSet()
getCwmColumnSet
in interface FarragoQueryColumnSet
public SqlMonotonicity getMonotonicity(String columnName)
SqlValidatorTable
getMonotonicity
in interface SqlValidatorTable
public SqlAccessType getAllowedAccess()
SqlValidatorTable
getAllowedAccess
in interface SqlValidatorTable
public void setAllowedAccess(SqlAccessType allowedAccess)
protected RelNode toUdxRel(RelOptCluster cluster, RelOptConnection connection, String udxSpecificName, String serverMofId, RexNode[] args)
cluster
- same as for toRelconnection
- same as for toReludxSpecificName
- specific name with which the UDX was created
(either via the SPECIFIC keyword or the invocation name if SPECIFIC was
not specified); this can be a qualified name, possibly with quoted
identifiers, e.g. x.y.z or x."y".zserverMofId
- if not null, the invoked UDX can access the data
server with the given MOFID at runtime via FarragoUdrRuntime.getDataServerRuntimeSupport(java.lang.Object)
args
- arguments to UDX invocation
protected RelNode toLenientRel(RelOptCluster cluster, RelNode child, RelDataType targetRowType, RelDataType srcRowType)
cluster
- same as for toRelchild
- original RelNodetargetRowType
- RowType to map tosrcRowType
- RowType of external data source
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |