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 Details

    • hashtableBuilt

      private boolean hashtableBuilt
    • startPosition

      private ExecIndexRow startPosition
    • stopPosition

      private ExecIndexRow stopPosition
    • compactRow

      protected ExecRow compactRow
    • firstNext

      protected boolean firstNext
    • numFetchedOnNext

      private int numFetchedOnNext
    • entryVectorSize

      private int entryVectorSize
    • entryVector

      private List entryVector
    • conglomId

      private long conglomId
    • scoci

    • startKeyGetter

      private GeneratedMethod startKeyGetter
    • startSearchOperator

      private int startSearchOperator
    • stopKeyGetter

      private GeneratedMethod stopKeyGetter
    • 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 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
    • hashtable

      protected BackingStoreHashtable hashtable
    • eliminateDuplicates

      protected boolean eliminateDuplicates
    • scanProperties

      public Properties scanProperties
    • startPositionString

      public String startPositionString
    • stopPositionString

      public String stopPositionString
    • hashtableSize

      public int hashtableSize
    • isConstraint

      public boolean isConstraint
    • DEFAULT_INITIAL_CAPACITY

      public static final int DEFAULT_INITIAL_CAPACITY
      See Also:
    • DEFAULT_LOADFACTOR

      public static final float DEFAULT_LOADFACTOR
      See Also:
    • DEFAULT_MAX_CAPACITY

      public static final int DEFAULT_MAX_CAPACITY
      See Also:
  • Constructor Details

    • 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, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, boolean forUpdate, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, boolean skipNullKeyColumns, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException
      Throws:
      StandardException
  • Method Details