net.sf.farrago.query
Class FarragoExecutableFennelStmt
java.lang.Object
org.eigenbase.util.CompoundClosableAllocation
net.sf.farrago.util.FarragoCompoundAllocation
net.sf.farrago.query.FarragoExecutableStmtImpl
net.sf.farrago.query.FarragoExecutableFennelStmt
- All Implemented Interfaces:
- FarragoSessionExecutableStmt, FarragoAllocation, FarragoAllocationOwner, ClosableAllocation, ClosableAllocationOwner
- Direct Known Subclasses:
- FarragoExecutableJavaStmt
class FarragoExecutableFennelStmt
- extends FarragoExecutableStmtImpl
FarragoExecutableFennelStmt implements FarragoSessionExecutableStmt by
executing a pure Fennel statement that requires no compiled Java classes.
NOTE: be sure to read superclass warnings before modifying this class.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/query/FarragoExecutableFennelStmt.java#13 $
- Author:
- Zelaine Fong
Constructor Summary |
FarragoExecutableFennelStmt(RelDataType preparedRowType,
RelDataType dynamicParamRowType,
String xmiFennelPlan,
String streamName,
boolean isDml,
TableModificationRelBase.Operation tableModOp,
Map<String,String> referencedObjectTimestampMap,
TableAccessMap tableAccessMap,
Map<String,RelDataType> typeMap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rowType
protected final RelDataType rowType
xmiFennelPlan
protected final String xmiFennelPlan
referencedObjectTimestampMap
private final Map<String,String> referencedObjectTimestampMap
streamName
private final String streamName
resultSetTypeMap
private final Map<String,RelDataType> resultSetTypeMap
FarragoExecutableFennelStmt
FarragoExecutableFennelStmt(RelDataType preparedRowType,
RelDataType dynamicParamRowType,
String xmiFennelPlan,
String streamName,
boolean isDml,
TableModificationRelBase.Operation tableModOp,
Map<String,String> referencedObjectTimestampMap,
TableAccessMap tableAccessMap,
Map<String,RelDataType> typeMap)
getRowType
public RelDataType getRowType()
- Returns:
- type descriptor for rows produced by this stmt
getReferencedObjectIds
public Set<String> getReferencedObjectIds()
- Specified by:
getReferencedObjectIds
in interface FarragoSessionExecutableStmt
- Overrides:
getReferencedObjectIds
in class FarragoExecutableStmtImpl
- Returns:
- Set of MOFID's of objects accessed when this stmt is executed
getReferencedObjectModTime
public String getReferencedObjectModTime(String mofid)
- Specified by:
getReferencedObjectModTime
in interface FarragoSessionExecutableStmt
- Overrides:
getReferencedObjectModTime
in class FarragoExecutableStmtImpl
- Returns:
- the modification time of an object accessed by this statement, or
null if the modification time is not available
execute
public ResultSet execute(FarragoSessionRuntimeContext runtimeContext)
- Description copied from interface:
FarragoSessionExecutableStmt
- Executes this statement.
- Parameters:
runtimeContext
- context in which to execute
- Returns:
- ResultSet produced by statement
getMemoryUsage
public long getMemoryUsage()
- Returns:
- approximate total number of bytes used by this statement's
in-memory representation
getResultSetTypeMap
public Map<String,RelDataType> getResultSetTypeMap()
- Description copied from interface:
FarragoSessionExecutableStmt
- Map from result set name to row type.
- Specified by:
getResultSetTypeMap
in interface FarragoSessionExecutableStmt
- Overrides:
getResultSetTypeMap
in class FarragoExecutableStmtImpl