Révision 2227
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/Substraction.java (revision 2227) | ||
---|---|---|
126 | 126 |
String query = cqpid+"=difference "+order[0].getQualifiedCqpId()+" "+order[1].getQualifiedCqpId()+";"; |
127 | 127 |
System.out.println("QUERY="+query); |
128 | 128 |
cqi.query(query); |
129 |
|
|
130 |
if (cqi.subCorpusSize(order[0].getMainCorpus()+":"+cqpid) == 0) { |
|
131 |
Log.info("The created subcorpus was empty. Aborting."); |
|
132 |
return Status.CANCEL_STATUS; |
|
133 |
} |
|
129 | 134 |
subcorpus = corpus.getCorpusParent().createSubcorpus(name, cqpid); |
130 | 135 |
|
131 | 136 |
if (subcorpus == null) { |
132 | 137 |
monitor.done(); |
133 |
System.out.println(TXMUIMessages.errorColonSubcorpusWasNotCreated);
|
|
138 |
Log.info(TXMUIMessages.errorColonSubcorpusWasNotCreated);
|
|
134 | 139 |
return Status.CANCEL_STATUS; |
135 | 140 |
} |
136 | 141 |
|
142 |
if (subcorpus.getSize() == 0) { |
|
143 |
Log.info("The created subcorpus was empty"); |
|
144 |
return Status.CANCEL_STATUS; |
|
145 |
} |
|
146 |
|
|
137 | 147 |
System.out.println(NLS.bind(TXMUIMessages.doneColonP0Created, subcorpus.getName())); |
138 | 148 |
monitor.worked(50); |
139 | 149 |
|
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/Intersection.java (revision 2227) | ||
---|---|---|
126 | 126 |
String query = cqpid+"=intersect "+order[0].getQualifiedCqpId()+" "+order[1].getQualifiedCqpId()+";"; |
127 | 127 |
System.out.println("QUERY="+query); |
128 | 128 |
cqi.query(query); |
129 |
|
|
130 |
System.out.println("END QUERY="+order[0].getMainCorpus()+":"+cqpid); |
|
131 |
if (cqi.subCorpusSize(order[0].getMainCorpus()+":"+cqpid) == 0) { |
|
132 |
Log.info("The created subcorpus was empty. Aborting."); |
|
133 |
return Status.CANCEL_STATUS; |
|
134 |
} |
|
129 | 135 |
subcorpus = corpus.getCorpusParent().createSubcorpus(name, cqpid); |
130 | 136 |
|
131 | 137 |
if (subcorpus == null) { |
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/handlers/base/Union.java (revision 2227) | ||
---|---|---|
126 | 126 |
String query = cqpid+"=join "+order[0].getQualifiedCqpId()+" "+order[1].getQualifiedCqpId()+";"; |
127 | 127 |
System.out.println("QUERY="+query); |
128 | 128 |
cqi.query(query); |
129 |
|
|
130 |
if (cqi.subCorpusSize(order[0].getMainCorpus()+":"+cqpid) == 0) { |
|
131 |
Log.info("The created subcorpus was empty. Aborting."); |
|
132 |
return Status.CANCEL_STATUS; |
|
133 |
} |
|
134 |
|
|
129 | 135 |
subcorpus = corpus.getCorpusParent().createSubcorpus(name, cqpid); |
130 | 136 |
|
131 | 137 |
if (subcorpus == null) { |
Formats disponibles : Unified diff