Class MultiIndex.Action
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.MultiIndex.Action
-
- Enclosing class:
- MultiIndex
public abstract static class MultiIndex.Action extends Object
Defines an action on anMultiIndex.
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_ADD_INDEXAction type for add index action.static intTYPE_ADD_NODEAction type for add node action.static intTYPE_COMMITAction type for commit action.static intTYPE_CREATE_INDEXAction type for create index action.static intTYPE_DELETE_INDEXAction type for delete index action.static intTYPE_DELETE_NODEAction type for delete node action.static intTYPE_STARTAction type for start action.static intTYPE_VOLATILE_COMMITAction type for volatile index commit action.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute(MultiIndex index)Executes this action on theindex.abstract StringtoString()Returns aStringrepresentation of this action that can be written to theRedoLog.voidundo(MultiIndex index)Executes the inverse operation of this action.
-
-
-
Field Detail
-
TYPE_START
public static final int TYPE_START
Action type for start action.- See Also:
- Constant Field Values
-
TYPE_ADD_NODE
public static final int TYPE_ADD_NODE
Action type for add node action.- See Also:
- Constant Field Values
-
TYPE_DELETE_NODE
public static final int TYPE_DELETE_NODE
Action type for delete node action.- See Also:
- Constant Field Values
-
TYPE_COMMIT
public static final int TYPE_COMMIT
Action type for commit action.- See Also:
- Constant Field Values
-
TYPE_VOLATILE_COMMIT
public static final int TYPE_VOLATILE_COMMIT
Action type for volatile index commit action.- See Also:
- Constant Field Values
-
TYPE_CREATE_INDEX
public static final int TYPE_CREATE_INDEX
Action type for create index action.- See Also:
- Constant Field Values
-
TYPE_ADD_INDEX
public static final int TYPE_ADD_INDEX
Action type for add index action.- See Also:
- Constant Field Values
-
TYPE_DELETE_INDEX
public static final int TYPE_DELETE_INDEX
Action type for delete index action.- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public abstract void execute(MultiIndex index) throws IOException
Executes this action on theindex.- Parameters:
index- the index where to execute the action.- Throws:
IOException- if the action fails due to some I/O error in the index or some other error.
-
undo
public void undo(MultiIndex index) throws IOException
Executes the inverse operation of this action. That is, does an undo of this action. This default implementation does nothing, but returns silently.- Parameters:
index- the index where to undo the action.- Throws:
IOException- if the action cannot be undone.
-
-