📄 resultsetfactory.java
字号:
@return the project restrict operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getProjectRestrictResultSet(NoPutResultSet source, Activation activation, GeneratedMethod restriction, GeneratedMethod projection, int resultSetNumber, GeneratedMethod constantRestriction, int mapArrayItem, boolean resuseResult, boolean doesProjection, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A hash table result set builds a hash table on its source, applying a list of predicates, if any, to the source, when building the hash table. It then does a look up into the hash table on a probe. The rows can be constructed as they are requested from the result set. @param source the result set from which to take rows to be filtered by this operation. @param activation the activation for this result set, against whcih the restriction and projection are performed and to which current rows must be assigned for the projection and restriction to be performed. @param singleTableRestriction restriction, if any, applied to input of hash table. @param equijoinQualifiers Qualifier[] for look up into hash table @param projection a reference to a method in the activation that is applied to the activation's "current row" field to project out the expected result row. The signature of this method is <verbatim> ExecRow projection() throws StandardException; </verbatim> @param resultSetNumber The resultSetNumber for the ResultSet @param mapArrayItem Item # for mapping of source to target columns @param reuseResult Whether or not to reuse the result row. @param keyColItem Item for hash key column array @param removeDuplicates Whether or not to remove duplicates when building the hash table @param maxInMemoryRowCount Max size of in-memory hash table @param initialCapacity initialCapacity for java.util.HashTable @param loadFactor loadFactor for java.util.HashTable @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the project restrict operation as a result set. @exception StandardException thrown when unable to create the result set */ public NoPutResultSet getHashTableResultSet(NoPutResultSet source, Activation activation, GeneratedMethod singleTableRestriction, Qualifier[][] equijoinQualifiers, GeneratedMethod projection, int resultSetNumber, int mapRefItem, boolean reuseResult, int keyColItem, boolean removeDuplicates, long maxInMemoryRowCount, int initialCapacity, float loadFactor, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A sort result set sorts its source and if requested removes duplicates. It will generate the entire result when open, and then return it a row at a time. <p> If passed aggregates it will do scalar or vector aggregate processing. A list of aggregator information is passed off of the PreparedStatement's savedObjects. Aggregation and SELECT DISTINCT cannot be processed in the same sort. @param source the result set from which to take rows to be filtered by this operation. @param distinct true if distinct SELECT list @param isInSortedOrder true if the source result set is in sorted order @param orderItem entry in preparedStatement's savedObjects for order @param activation the activation for this result set, against which the sort-unique is performed. @param rowAllocator a reference to a method in the activation that generates rows of the right size and shape for the source @param rowSize the size of the row that is allocated by rowAllocator. size should be the maximum size of the sum of all the datatypes. user type are necessarily approximated @param resultSetNumber The resultSetNumber for the ResultSet @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the distinct operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getSortResultSet(NoPutResultSet source, boolean distinct, boolean isInSortedOrder, int orderItem, Activation activation, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A ScalarAggregateResultSet computes non-distinct scalar aggregates. It will compute the aggregates when open. @param source the result set from which to take rows to be filtered by this operation. @param isInSortedOrder true if the source result set is in sorted order @param aggregateItem entry in preparedStatement's savedObjects for aggregates @param orderingItem Ignored to allow same signature as getDistinctScalarAggregateResultSet @param activation the activation for this result set, against which the sort-unique is performed. @param rowAllocator a reference to a method in the activation that generates rows of the right size and shape for the source @param rowSize Ignored to allow same signature as getDistinctScalarAggregateResultSet @param resultSetNumber The resultSetNumber for the ResultSet @param singleInputRow Whether we know we have a single input row or not @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the scalar aggregation operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getScalarAggregateResultSet(NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation activation, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, boolean singleInputRow, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A DistinctScalarAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate. It will compute the aggregates when open. @param source the result set from which to take rows to be filtered by this operation. @param isInSortedOrder true if the source result set is in sorted order @param aggregateItem entry in preparedStatement's savedObjects for aggregates @param orderItem entry in preparedStatement's savedObjects for order @param activation the activation for this result set, against which the sort-unique is performed. @param rowAllocator a reference to a method in the activation that generates rows of the right size and shape for the source @param rowSize the size of the row that is allocated by rowAllocator. size should be the maximum size of the sum of all the datatypes. user type are necessarily approximated @param resultSetNumber The resultSetNumber for the ResultSet @param singleInputRow Whether we know we have a single input row or not @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the scalar aggregation operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getDistinctScalarAggregateResultSet(NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation activation, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, boolean singleInputRow, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A GroupedAggregateResultSet computes non-distinct grouped aggregates. It will compute the aggregates when open. @param source the result set from which to take rows to be filtered by this operation. @param isInSortedOrder true if the source result set is in sorted order @param aggregateItem entry in preparedStatement's savedObjects for aggregates @param orderingItem Ignored to allow same signature as getDistinctScalarAggregateResultSet @param activation the activation for this result set, against which the sort-unique is performed. @param rowAllocator a reference to a method in the activation that generates rows of the right size and shape for the source @param rowSize Ignored to allow same signature as getDistinctScalarAggregateResultSet @param resultSetNumber The resultSetNumber for the ResultSet @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the scalar aggregation operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getGroupedAggregateResultSet(NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation activation, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** A DistinctGroupedAggregateResultSet computes scalar aggregates when at least one of them is a distinct aggregate. It will compute the aggregates when open. @param source the result set from which to take rows to be filtered by this operation. @param isInSortedOrder true if the source result set is in sorted order @param aggregateItem entry in preparedStatement's savedObjects for aggregates @param orderItem entry in preparedStatement's savedObjects for order @param activation the activation for this result set, against which the sort-unique is performed. @param rowAllocator a reference to a method in the activation that generates rows of the right size and shape for the source @param rowSize the size of the row that is allocated by rowAllocator. size should be the maximum size of the sum of all the datatypes. user type are necessarily approximated @param resultSetNumber The resultSetNumber for the ResultSet @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @param closeCleanup any cleanup the activation needs to do on close. @return the scalar aggregation operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getDistinctGroupedAggregateResultSet(NoPutResultSet source, boolean isInSortedOrder, int aggregateItem, int orderingItem, Activation activation, GeneratedMethod rowAllocator, int rowSize, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod closeCleanup) throws StandardException; /** An any result set iterates over its source, returning a row with all columns set to nulls if the source returns no rows. @param source the result set from which to take rows to be filtered by this operation. @param activation the activation for this result set, against whcih the restriction and projection are performed and to which current rows must be assigned for the projection and restriction to be performed. @param emptyRowFun a reference to a method in the activation that is called if the source returns no rows @param resultSetNumber The resultSetNumber for the ResultSet @param subqueryNumber The subquery number for this subquery. @param pointOfAttachment The point of attachment for this subquery. @param optimizerEstimatedRowCount Estimated total # of rows by optimizer @param optimizerEstimatedCost Estimated total cost by optimizer @return the any operation as a result set. @exception StandardException thrown when unable to create the result set */ NoPutResultSet getAnyResultSet(NoPutResultSet source, Activation activation, GeneratedMethod emptyRowFun, int resultSetNumber, int subqueryNumber, int pointOfAttachment, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException; /** A once result set iterates over its source, raising an error if the source returns > 1 row and returning a row with all columns set to nulls if the source returns no rows. @param source the result set from which to take rows to be filtered by this operation. @param activation the activation for this result set, against whcih the restriction and projection are performed and to which current rows must be assigned for the projection and restriction to be performed. @param emptyRowFun a reference to a method in the activation that is called if the source returns no rows @param cardinalityCheck The type of cardinality check, if any that is required
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -