public abstract static class MultiIndex.Action extends Object
MultiIndex.| Modifier and Type | Field and Description | 
|---|---|
| static int | TYPE_ADD_INDEXAction type for add index action. | 
| static int | TYPE_ADD_NODEAction type for add node action. | 
| static int | TYPE_COMMITAction type for commit action. | 
| static int | TYPE_CREATE_INDEXAction type for create index action. | 
| static int | TYPE_DELETE_INDEXAction type for delete index action. | 
| static int | TYPE_DELETE_NODEAction type for delete node action. | 
| static int | TYPE_STARTAction type for start action. | 
| static int | TYPE_VOLATILE_COMMITAction type for volatile index commit action. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | execute(MultiIndex index)Executes this action on the  index. | 
| abstract String | toString()Returns a  Stringrepresentation of this action that can be
 written to theRedoLog. | 
| void | undo(MultiIndex index)Executes the inverse operation of this action. | 
public static final int TYPE_START
public static final int TYPE_ADD_NODE
public static final int TYPE_DELETE_NODE
public static final int TYPE_COMMIT
public static final int TYPE_VOLATILE_COMMIT
public static final int TYPE_CREATE_INDEX
public static final int TYPE_ADD_INDEX
public static final int TYPE_DELETE_INDEX
public abstract void execute(MultiIndex index) throws IOException
index.index - the index where to execute the action.IOException - if the action fails due to some I/O error in
                             the index or some other error.public void undo(MultiIndex index) throws IOException
index - the index where to undo the action.IOException - if the action cannot be undone.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.