1 21 22 package org.apache.derby.impl.store.access; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.store.access.conglomerate.ScanManager; 29 30 import org.apache.derby.iapi.store.access.Qualifier; 31 import org.apache.derby.iapi.store.access.RowSource; 32 import org.apache.derby.iapi.store.access.TransactionController; 33 34 import org.apache.derby.iapi.types.DataValueDescriptor; 35 36 import org.apache.derby.iapi.store.access.BackingStoreHashtable; 37 import org.apache.derby.iapi.services.io.FormatableBitSet; 38 39 import java.util.Properties ; 40 41 54 55 class BackingStoreHashTableFromScan extends BackingStoreHashtable 56 { 57 58 62 private ScanManager open_scan; 63 64 68 public BackingStoreHashTableFromScan( 69 TransactionController tc, 70 long conglomId, 71 int open_mode, 72 int lock_level, 73 int isolation_level, 74 FormatableBitSet scanColumnList, 75 DataValueDescriptor[] startKeyValue, 76 int startSearchOperator, 77 Qualifier qualifier[][], 78 DataValueDescriptor[] stopKeyValue, 79 int stopSearchOperator, 80 long max_rowcnt, 81 int[] key_column_numbers, 82 boolean remove_duplicates, 83 long estimated_rowcnt, 84 long max_inmemory_rowcnt, 85 int initialCapacity, 86 float loadFactor, 87 boolean collect_runtimestats, 88 boolean skipNullKeyColumns) 89 throws StandardException 90 { 91 92 super( 93 tc, 94 (RowSource) null, 95 key_column_numbers, 96 remove_duplicates, 97 estimated_rowcnt, 98 max_inmemory_rowcnt, 99 initialCapacity, 100 loadFactor, 101 skipNullKeyColumns, 102 false ); 103 104 open_scan = (ScanManager) 105 tc.openScan( 106 conglomId, 107 false, 108 open_mode, 109 lock_level, 110 isolation_level, 111 scanColumnList, 112 startKeyValue, 113 startSearchOperator, 114 qualifier, 115 stopKeyValue, 116 stopSearchOperator); 117 118 open_scan.fetchSet( 119 max_rowcnt, key_column_numbers, this); 120 121 if (collect_runtimestats) 122 { 123 Properties prop = new Properties (); 124 open_scan.getScanInfo().getAllScanInfo(prop); 125 this.setAuxillaryRuntimeStats(prop); 126 prop = null; 127 } 128 } 129 130 131 135 136 140 141 151 public void close() 152 throws StandardException 153 { 154 open_scan.close(); 155 156 super.close(); 157 158 return; 159 } 160 161 165 } 166 | Popular Tags |