01: package org.space4j.indexing;
02:
03: import java.util.*;
04: import org.space4j.*;
05: import org.space4j.indexing.*;
06:
07: class DropIndexCmd extends Command {
08:
09: private Index indx;
10:
11: public DropIndexCmd(Index indx) {
12: this .indx = indx;
13: }
14:
15: public int execute(Space space) throws CommandException {
16: IndexManager im = (IndexManager) space
17: .getObject("sys_IndexManager");
18: boolean ok = im.dropIndexImpl(indx);
19: if (ok)
20: return 1;
21: return 0;
22: }
23: }
|