01: package org.compass.core.lucene.engine.transaction.serializable;
02:
03: import java.io.IOException;
04:
05: import org.compass.core.engine.SearchEngineException;
06: import org.compass.core.lucene.engine.transaction.readcommitted.ReadCommittedTransaction;
07:
08: /**
09: * @author kimchy
10: */
11: public class SerializableTransaction extends ReadCommittedTransaction {
12:
13: public void begin() throws SearchEngineException {
14: super .begin();
15: for (String subIndex : indexManager.getStore().getSubIndexes()) {
16: try {
17: openIndexWriterIfNeeded(subIndex);
18: } catch (IOException e) {
19: throw new SearchEngineException(
20: "Failed to open index writer for sub index ["
21: + subIndex + "]", e);
22: }
23: }
24: }
25: }
|