1 21 22 package org.apache.derby.impl.sql.execute.rts; 23 24 import org.apache.derby.iapi.services.i18n.MessageService; 25 import org.apache.derby.iapi.reference.SQLState; 26 27 33 public class RealHashJoinStatistics 34 extends RealNestedLoopJoinStatistics 35 { 36 37 39 43 public RealHashJoinStatistics( 44 int numOpens, 45 int rowsSeen, 46 int rowsFiltered, 47 long constructorTime, 48 long openTime, 49 long nextTime, 50 long closeTime, 51 int resultSetNumber, 52 int rowsSeenLeft, 53 int rowsSeenRight, 54 int rowsReturned, 55 long restrictionTime, 56 boolean oneRowRightSide, 57 double optimizerEstimatedRowCount, 58 double optimizerEstimatedCost, 59 String userSuppliedOptimizerOverrides, 60 ResultSetStatistics leftResultSetStatistics, 61 ResultSetStatistics rightResultSetStatistics 62 ) 63 { 64 super( 65 numOpens, 66 rowsSeen, 67 rowsFiltered, 68 constructorTime, 69 openTime, 70 nextTime, 71 closeTime, 72 resultSetNumber, 73 rowsSeenLeft, 74 rowsSeenRight, 75 rowsReturned, 76 restrictionTime, 77 oneRowRightSide, 78 optimizerEstimatedRowCount, 79 optimizerEstimatedCost, 80 userSuppliedOptimizerOverrides, 81 leftResultSetStatistics, 82 rightResultSetStatistics 83 ); 84 } 85 86 88 89 90 92 protected void setNames() 93 { 94 if (oneRowRightSide) 95 { 96 nodeName = MessageService.getTextMessage( 97 SQLState.RTS_HASH_EXISTS_JOIN); 98 resultSetName = MessageService.getTextMessage( 99 SQLState.RTS_HASH_EXISTS_JOIN_RS); 100 } 101 else 102 { 103 nodeName = MessageService.getTextMessage( 104 SQLState.RTS_HASH_JOIN); 105 resultSetName = MessageService.getTextMessage( 106 SQLState.RTS_HASH_JOIN_RS); 107 } 108 } 109 } 110 | Popular Tags |