⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genericresultsetfactory.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
						rowAllocator, maxRowSize, resultSetNumber, optimizerEstimatedRowCount,						optimizerEstimatedCost, closeCleanup);	}												/**		@see ResultSetFactory#getAnyResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getAnyResultSet(NoPutResultSet source,		Activation activation, GeneratedMethod emptyRowFun, int resultSetNumber,		int subqueryNumber, int pointOfAttachment,		double optimizerEstimatedRowCount,		double optimizerEstimatedCost)			throws StandardException	{		return new AnyResultSet(source,					 activation, emptyRowFun, resultSetNumber,					 subqueryNumber, pointOfAttachment,					 optimizerEstimatedRowCount,					 optimizerEstimatedCost);	}	/**		@see ResultSetFactory#getOnceResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getOnceResultSet(NoPutResultSet source,		Activation activation, GeneratedMethod emptyRowFun,		int cardinalityCheck, int resultSetNumber,		int subqueryNumber, int pointOfAttachment,		double optimizerEstimatedRowCount,		double optimizerEstimatedCost)			throws StandardException	{		return new OnceResultSet(source,					 activation, emptyRowFun, 					 cardinalityCheck, resultSetNumber,					 subqueryNumber, pointOfAttachment,				     optimizerEstimatedRowCount,					 optimizerEstimatedCost);	}	/**		@see ResultSetFactory#getRowResultSet	 */	public NoPutResultSet getRowResultSet(Activation activation, GeneratedMethod row,									 boolean canCacheRow,									 int resultSetNumber,									 double optimizerEstimatedRowCount,									 double optimizerEstimatedCost,								     GeneratedMethod closeCleanup)	{		return new RowResultSet(activation, row, canCacheRow, resultSetNumber, 							    optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**		@see ResultSetFactory#getVTIResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getVTIResultSet(Activation activation, GeneratedMethod row,									 int resultSetNumber,									 GeneratedMethod constructor,									 String javaClassName,									 Qualifier[][] pushedQualifiers,									 int erdNumber,									 boolean version2,									 boolean reuseablePs,									 int ctcNumber,									 boolean isTarget,									 int scanIsolationLevel,									 double optimizerEstimatedRowCount,									 double optimizerEstimatedCost,								     GeneratedMethod closeCleanup)		throws StandardException	{		return new VTIResultSet(activation, row, resultSetNumber, 								constructor,								javaClassName,								pushedQualifiers,								erdNumber,								version2, reuseablePs,								ctcNumber,								isTarget,								scanIsolationLevel,							    optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**    	a hash scan generator, for ease of use at present.		@see ResultSetFactory#getHashScanResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getHashScanResultSet(									long conglomId,									int scociItem,									Activation activation,									GeneratedMethod resultRowAllocator,									int resultSetNumber,									GeneratedMethod startKeyGetter,									int startSearchOperator,									GeneratedMethod stopKeyGetter,									int stopSearchOperator,									boolean sameStartStopPosition,									Qualifier[][] scanQualifiers,									Qualifier[][] nextQualifiers,									int initialCapacity,									float loadFactor,									int maxCapacity,									int hashKeyColumn,									String tableName,									String indexName,									boolean isConstraint,									boolean forUpdate,									int colRefItem,									int indexColItem,									int lockMode,									boolean tableLocked,									int isolationLevel,									double optimizerEstimatedRowCount,									double optimizerEstimatedCost,									GeneratedMethod closeCleanup)			throws StandardException	{        StaticCompiledOpenConglomInfo scoci = (StaticCompiledOpenConglomInfo)(activation.getPreparedStatement().						getSavedObject(scociItem));		return new HashScanResultSet(								conglomId,								scoci,								activation,								resultRowAllocator,								resultSetNumber,								startKeyGetter,								startSearchOperator,								stopKeyGetter,								stopSearchOperator,								sameStartStopPosition,								scanQualifiers,								nextQualifiers,								initialCapacity,								loadFactor,								maxCapacity,								hashKeyColumn,								tableName,								indexName,								isConstraint,								forUpdate,								colRefItem,								lockMode,								tableLocked,								isolationLevel,								true,		// Skip rows with 1 or more null key columns								optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**    	a distinct scan generator, for ease of use at present.		@see ResultSetFactory#getHashScanResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getDistinctScanResultSet(									long conglomId,									int scociItem,									Activation activation,									GeneratedMethod resultRowAllocator,									int resultSetNumber,									int hashKeyColumn,									String tableName,									String indexName,									boolean isConstraint,									int colRefItem,									int lockMode,									boolean tableLocked,									int isolationLevel,									double optimizerEstimatedRowCount,									double optimizerEstimatedCost,									GeneratedMethod closeCleanup)			throws StandardException	{        StaticCompiledOpenConglomInfo scoci = (StaticCompiledOpenConglomInfo)(activation.getPreparedStatement().						getSavedObject(scociItem));		return new DistinctScanResultSet(								conglomId,								scoci,								activation,								resultRowAllocator,								resultSetNumber,								hashKeyColumn,								tableName,								indexName,								isConstraint,								colRefItem,								lockMode,								tableLocked,								isolationLevel,								optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**    	a minimal table scan generator, for ease of use at present.		@see ResultSetFactory#getTableScanResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getTableScanResultSet(									long conglomId,									int scociItem,									Activation activation,									GeneratedMethod resultRowAllocator,									int resultSetNumber,									GeneratedMethod startKeyGetter,									int startSearchOperator,									GeneratedMethod stopKeyGetter,									int stopSearchOperator,									boolean sameStartStopPosition,									Qualifier[][] qualifiers,									String tableName,									String indexName,									boolean isConstraint,									boolean forUpdate,									int colRefItem,									int indexColItem,									int lockMode,									boolean tableLocked,									int isolationLevel,									boolean oneRowScan,									double optimizerEstimatedRowCount,									double optimizerEstimatedCost,									GeneratedMethod closeCleanup)			throws StandardException	{        StaticCompiledOpenConglomInfo scoci = (StaticCompiledOpenConglomInfo)(activation.getPreparedStatement().						getSavedObject(scociItem));		return new TableScanResultSet(								conglomId,								scoci,								activation,								resultRowAllocator,								resultSetNumber,								startKeyGetter,								startSearchOperator,								stopKeyGetter,								stopSearchOperator,								sameStartStopPosition,								qualifiers,								tableName,								indexName,								isConstraint,								forUpdate,								colRefItem,								indexColItem,								lockMode,								tableLocked,								isolationLevel,								1,	// rowsPerRead is 1 if not a bulkTableScan								oneRowScan,								optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**    	Table/Index scan where rows are read in bulk		@see ResultSetFactory#getBulkTableScanResultSet		@exception StandardException thrown on error	 */	public NoPutResultSet getBulkTableScanResultSet(									long conglomId,									int scociItem,									Activation activation,									GeneratedMethod resultRowAllocator,									int resultSetNumber,									GeneratedMethod startKeyGetter,									int startSearchOperator,									GeneratedMethod stopKeyGetter,									int stopSearchOperator,									boolean sameStartStopPosition,									Qualifier[][] qualifiers,									String tableName,									String indexName,									boolean isConstraint,									boolean forUpdate,									int colRefItem,									int indexColItem,									int lockMode,									boolean tableLocked,									int isolationLevel,									int rowsPerRead,									boolean oneRowScan,									double optimizerEstimatedRowCount,									double optimizerEstimatedCost,									GeneratedMethod closeCleanup)			throws StandardException	{		//Prior to Cloudscape 10.0 release, holdability was false by default. Programmers had to explicitly		//set the holdability to true using JDBC apis. Since holdability was not true by default, we chose to disable the		//prefetching for RR and Serializable when holdability was explicitly set to true. 		//But starting Cloudscape 10.0 release, in order to be DB2 compatible, holdability is set to true by default.		//Because of that, we can not continue to disable the prefetching for RR and Serializable, since it causes		//severe performance degradation - bug 5953.            StaticCompiledOpenConglomInfo scoci = (StaticCompiledOpenConglomInfo)(activation.getPreparedStatement().						getSavedObject(scociItem));		return new BulkTableScanResultSet(								conglomId,								scoci,								activation,								resultRowAllocator,								resultSetNumber,								startKeyGetter,								startSearchOperator,								stopKeyGetter,								stopSearchOperator,								sameStartStopPosition,								qualifiers,								tableName,								indexName,								isConstraint,								forUpdate,								colRefItem,								indexColItem,								lockMode,								tableLocked,								isolationLevel,								rowsPerRead,								oneRowScan,								optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**		@see ResultSetFactory#getIndexRowToBaseRowResultSet		@exception StandardException	Thrown on error	 */	public NoPutResultSet getIndexRowToBaseRowResultSet(								long conglomId,								int scociItem,								Activation a,								NoPutResultSet source,								GeneratedMethod resultRowAllocator,								int resultSetNumber,								String indexName,								int heapColRefItem,								int indexColRefItem,								int indexColMapItem,								GeneratedMethod restriction,								boolean forUpdate,								double optimizerEstimatedRowCount,								double optimizerEstimatedCost,								GeneratedMethod closeCleanup)			throws StandardException	{		return new IndexRowToBaseRowResultSet(								conglomId,								scociItem,								a,								source,								resultRowAllocator,								resultSetNumber,								indexName,								heapColRefItem,								indexColRefItem,								indexColMapItem,								restriction,								forUpdate,							    optimizerEstimatedRowCount,								optimizerEstimatedCost,								closeCleanup);	}	/**		@see ResultSetFactory#getNestedLoopJoinResultSet		@exception StandardException thrown on error	 */    public NoPutResultSet getNestedLoopJoinResultSet(NoPutResultSet leftResultSet,								   int leftNumCols,								   NoPutResultSet rightResultSet,								   int rightNumCols,								   Activation activation,								   GeneratedMethod joinClause,								   int resultSetNumber,								   boolean oneRowRightSide,								   boolean notExistsRightSide,								   double optimizerEstimatedRowCount,								   double optimizerEstimatedCost,								   GeneratedMethod closeCleanup)			throws StandardException	{		return new NestedLoopJoinResultSet(leftResultSet, leftNumCols,										   rightResultSet, rightNumCols,										   activation, joinClause,										   resultSetNumber, 										   oneRowRightSide, 										   notExistsRightSide, 										   optimizerEstimatedRowCount,										   optimizerEstimatedCost,										   closeCleanup);	}	/**

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -