Révision 2209
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/CQPCorpus.java (revision 2209) | ||
---|---|---|
132 | 132 |
QUERY_COUNTER++; |
133 | 133 |
return QUERY_COUNTER.toString(); |
134 | 134 |
} |
135 |
|
|
136 |
/** |
|
137 |
* append the current timestamp to the subcorpus counter -> should avoid clash between subcorpus created between different TXM sessions |
|
138 |
* @return |
|
139 |
*/ |
|
135 | 140 |
public static String getNextSubcorpusCounter() { |
136 | 141 |
SUBCORPUS_COUNTER++; |
137 |
return SUBCORPUS_COUNTER.toString(); |
|
142 |
return ""+System.currentTimeMillis()+"_"+SUBCORPUS_COUNTER.toString();
|
|
138 | 143 |
} |
139 | 144 |
|
140 | 145 |
/** |
Formats disponibles : Unified diff