net.sf.farrago.query
Class FarragoExecutableJavaStmt
java.lang.Object
org.eigenbase.util.CompoundClosableAllocation
net.sf.farrago.util.FarragoCompoundAllocation
net.sf.farrago.query.FarragoExecutableStmtImpl
net.sf.farrago.query.FarragoExecutableFennelStmt
net.sf.farrago.query.FarragoExecutableJavaStmt
- All Implemented Interfaces:
- FarragoSessionExecutableStmt, FarragoAllocation, FarragoAllocationOwner, ClosableAllocation, ClosableAllocationOwner
class FarragoExecutableJavaStmt
- extends FarragoExecutableFennelStmt
FarragoExecutableJavaStmt implements FarragoSessionExecutableStmt via a
compiled Java class. It extends upon FarragoExecutableFennelStmt, which
implements the Fennel portion of a statement.
NOTE: be sure to read superclass warnings before modifying this class.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/query/FarragoExecutableJavaStmt.java#31 $
- Author:
- John V. Sichi
Constructor Summary |
FarragoExecutableJavaStmt(File packageDir,
Class rowClass,
ClassLoader stmtClassLoader,
RelDataType preparedRowType,
RelDataType dynamicParamRowType,
Method stmtMethod,
List<FarragoTransformDef> transformDefs,
String xmiFennelPlan,
boolean isDml,
TableModificationRelBase.Operation tableModOp,
Map<String,String> referencedObjectTimestampMap,
TableAccessMap tableAccessMap,
Map<String,RelDataType> resultSetTypeMap,
Map<String,RelDataType> iterCalcTypeMap,
int totalByteCodeSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
packageDir
private final File packageDir
rowClass
private final Class rowClass
stmtClassLoader
private final ClassLoader stmtClassLoader
stmtMethod
private final Method stmtMethod
transformDefs
private final List<FarragoTransformDef> transformDefs
resultSetTypeMap
private final Map<String,RelDataType> resultSetTypeMap
iterCalcTypeMap
private final Map<String,RelDataType> iterCalcTypeMap
totalByteCodeSize
private final int totalByteCodeSize
FarragoExecutableJavaStmt
FarragoExecutableJavaStmt(File packageDir,
Class rowClass,
ClassLoader stmtClassLoader,
RelDataType preparedRowType,
RelDataType dynamicParamRowType,
Method stmtMethod,
List<FarragoTransformDef> transformDefs,
String xmiFennelPlan,
boolean isDml,
TableModificationRelBase.Operation tableModOp,
Map<String,String> referencedObjectTimestampMap,
TableAccessMap tableAccessMap,
Map<String,RelDataType> resultSetTypeMap,
Map<String,RelDataType> iterCalcTypeMap,
int totalByteCodeSize)
execute
public ResultSet execute(FarragoSessionRuntimeContext runtimeContext)
- Description copied from interface:
FarragoSessionExecutableStmt
- Executes this statement.
- Specified by:
execute
in interface FarragoSessionExecutableStmt
- Overrides:
execute
in class FarragoExecutableFennelStmt
- Parameters:
runtimeContext
- context in which to execute
- Returns:
- ResultSet produced by statement
getMemoryUsage
public long getMemoryUsage()
- Specified by:
getMemoryUsage
in interface FarragoSessionExecutableStmt
- Overrides:
getMemoryUsage
in class FarragoExecutableFennelStmt
- 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 FarragoExecutableFennelStmt
getIterCalcTypeMap
public Map<String,RelDataType> getIterCalcTypeMap()
- Description copied from interface:
FarragoSessionExecutableStmt
- Map from IterCalcRel tag to row type.
- Specified by:
getIterCalcTypeMap
in interface FarragoSessionExecutableStmt
- Overrides:
getIterCalcTypeMap
in class FarragoExecutableStmtImpl