Index: trunk/WikiWord/WikiWord/src/main/java/de/brightbyte/wikiword/schema/LocalStatisticsStoreSchema.java |
— | — | @@ -39,11 +39,15 @@ |
40 | 40 | public boolean isComplete() throws SQLException { |
41 | 41 | if (!super.isComplete()) return false; |
42 | 42 | |
| 43 | + //NOTE: term stats may have been skipped. |
| 44 | + // they are not needed for most kinds of processing. |
| 45 | + /* |
43 | 46 | if (!this.tableExists("term")) return false; |
44 | 47 | |
45 | 48 | String sql = "select count(*) from "+this.getSQLTableName("term"); |
46 | 49 | int c = ((Number)this.executeSingleValueQuery("isComplete", sql)).intValue(); |
47 | 50 | if (c==0) return false; |
| 51 | + */ |
48 | 52 | |
49 | 53 | return true; |
50 | 54 | } |
Index: trunk/WikiWord/WikiWord/src/main/java/de/brightbyte/wikiword/schema/StatisticsStoreSchema.java |
— | — | @@ -111,25 +111,22 @@ |
112 | 112 | @Override |
113 | 113 | public boolean isComplete() throws SQLException { |
114 | 114 | if (!super.isComplete()) return false; |
| 115 | + |
| 116 | + String sql; |
| 117 | + int c; |
| 118 | + |
115 | 119 | if (!this.tableExists("stats")) return false; |
116 | 120 | |
117 | | - /* |
118 | | - if (!this.tableExists("term")) return false; |
119 | | - if (!this.tableExists("degree")) return false; |
120 | | - |
121 | | - String sql = "select count(*) from "+this.getSQLTableName("term"); |
122 | | - int c = ((Number)this.executeSingleValueQuery("isComplete", sql)).intValue(); |
| 121 | + sql = "select count(*) from "+this.getSQLTableName("stats"); |
| 122 | + c = ((Number)this.executeSingleValueQuery("isComplete", sql)).intValue(); |
123 | 123 | if (c==0) return false; |
| 124 | + |
| 125 | + if (!this.tableExists("degree")) return false; |
124 | 126 | |
125 | 127 | sql = "select count(*) from "+this.getSQLTableName("degree"); |
126 | 128 | c = ((Number)this.executeSingleValueQuery("isComplete", sql)).intValue(); |
127 | 129 | if (c==0) return false; |
128 | | - */ |
129 | 130 | |
130 | | - String sql = "select count(*) from "+this.getSQLTableName("stats"); |
131 | | - int c = ((Number)this.executeSingleValueQuery("isComplete", sql)).intValue(); |
132 | | - if (c==0) return false; |
133 | | - |
134 | 131 | return true; |
135 | 132 | } |
136 | 133 | |