1 21 22 package org.apache.derby.impl.sql.execute.rts; 23 24 import org.apache.derby.iapi.services.io.Formatable; 25 26 import org.apache.derby.iapi.services.io.FormatableHashtable; 27 28 import java.io.ObjectOutput ; 29 import java.io.ObjectInput ; 30 import java.io.IOException ; 31 32 38 abstract class RealNoPutResultSetStatistics 39 extends RealBasicNoPutResultSetStatistics 40 { 41 42 public int resultSetNumber; 43 44 45 protected String indent; 46 protected String subIndent; 47 protected int sourceDepth; 48 49 51 55 public RealNoPutResultSetStatistics( 56 int numOpens, 57 int rowsSeen, 58 int rowsFiltered, 59 long constructorTime, 60 long openTime, 61 long nextTime, 62 long closeTime, 63 int resultSetNumber, 64 double optimizerEstimatedRowCount, 65 double optimizerEstimatedCost 66 ) 67 { 68 super( 69 numOpens, 70 rowsSeen, 71 rowsFiltered, 72 constructorTime, 73 openTime, 74 nextTime, 75 closeTime, 76 optimizerEstimatedRowCount, 77 optimizerEstimatedCost 78 ); 79 80 this.resultSetNumber = resultSetNumber; 81 } 82 83 86 protected void initFormatInfo(int depth) 87 { 88 char[] indentchars = new char[depth]; 89 char[] subIndentchars = new char[depth + 1]; 90 sourceDepth = depth + 1; 91 92 95 subIndentchars[depth] = '\t'; 96 while (depth > 0) 97 { 98 subIndentchars[depth - 1] = '\t'; 99 indentchars[depth - 1] = '\t'; 100 depth--; 101 } 102 indent = new String (indentchars); 105 subIndent = new String (subIndentchars); 106 } 107 } 108 | Popular Tags |