Class HashScanResultSet

  • All Implemented Interfaces:
    CursorResultSet, NoPutResultSet, ResultSet, RowLocationRetRowSource, RowSource
    Direct Known Subclasses:
    DistinctScanResultSet

    public class HashScanResultSet
    extends ScanResultSet
    implements CursorResultSet
    Takes a conglomerate and a table filter builds a hash table on the specified column of the conglomerate on the 1st open. Look up into the hash table is done on the hash key column. The hash table consists of either DataValueDescriptor[]s or Lists of DataValueDescriptor[]. The store builds the hash table. When a collision occurs, the store builds a List with the colliding DataValueDescriptor[]s.
    • Field Detail

      • hashtableBuilt

        private boolean hashtableBuilt
      • compactRow

        protected ExecRow compactRow
      • firstNext

        protected boolean firstNext
      • numFetchedOnNext

        private int numFetchedOnNext
      • entryVectorSize

        private int entryVectorSize
      • entryVector

        private java.util.List entryVector
      • conglomId

        private long conglomId
      • startSearchOperator

        private int startSearchOperator
      • stopSearchOperator

        private int stopSearchOperator
      • scanQualifiers

        public Qualifier[][] scanQualifiers
      • nextQualifiers

        public Qualifier[][] nextQualifiers
      • initialCapacity

        private int initialCapacity
      • loadFactor

        private float loadFactor
      • maxCapacity

        private int maxCapacity
      • userSuppliedOptimizerOverrides

        public java.lang.String userSuppliedOptimizerOverrides
      • forUpdate

        public boolean forUpdate
      • runTimeStatisticsOn

        private boolean runTimeStatisticsOn
      • keyColumns

        public int[] keyColumns
      • sameStartStopPosition

        private boolean sameStartStopPosition
      • skipNullKeyColumns

        private boolean skipNullKeyColumns
      • keepAfterCommit

        private boolean keepAfterCommit
      • eliminateDuplicates

        protected boolean eliminateDuplicates
      • scanProperties

        public java.util.Properties scanProperties
      • startPositionString

        public java.lang.String startPositionString
      • stopPositionString

        public java.lang.String stopPositionString
      • hashtableSize

        public int hashtableSize
      • isConstraint

        public boolean isConstraint
      • DEFAULT_INITIAL_CAPACITY

        public static final int DEFAULT_INITIAL_CAPACITY
        See Also:
        Constant Field Values
    • Constructor Detail

      • HashScanResultSet

        HashScanResultSet​(long conglomId,
                          StaticCompiledOpenConglomInfo scoci,
                          Activation activation,
                          int resultRowTemplate,
                          int resultSetNumber,
                          GeneratedMethod startKeyGetter,
                          int startSearchOperator,
                          GeneratedMethod stopKeyGetter,
                          int stopSearchOperator,
                          boolean sameStartStopPosition,
                          Qualifier[][] scanQualifiers,
                          Qualifier[][] nextQualifiers,
                          int initialCapacity,
                          float loadFactor,
                          int maxCapacity,
                          int hashKeyItem,
                          java.lang.String tableName,
                          java.lang.String userSuppliedOptimizerOverrides,
                          java.lang.String indexName,
                          boolean isConstraint,
                          boolean forUpdate,
                          int colRefItem,
                          int lockMode,
                          boolean tableLocked,
                          int isolationLevel,
                          boolean skipNullKeyColumns,
                          double optimizerEstimatedRowCount,
                          double optimizerEstimatedCost)
                   throws StandardException
        Throws:
        StandardException