org.usergrid.tools
Class EntityIndexCleanup
java.lang.Object
org.usergrid.tools.ToolBase
org.usergrid.tools.EntityIndexCleanup
public class EntityIndexCleanup
- extends ToolBase
This is a utility to audit all available entity ids in the secondary index.
It then checks to see if any index value is not present in the
Entity_Index_Entries. If it is not, the value from the index is removed, and
a forced re-index is triggered
USERGRID-323
- Author:
- tnine
Field Summary |
static me.prettyprint.cassandra.serializers.ByteBufferSerializer |
be
|
Method Summary |
org.apache.commons.cli.Options |
createOptions()
|
void |
runTool(org.apache.commons.cli.CommandLine line)
|
Methods inherited from class org.usergrid.tools.ToolBase |
getToolName, printCliHelp, setCassandraService, setEntityManagerFactory, setManagementService, setProperties, setServiceManagerFactory, setupCassandra, startEmbedded, startSpring, startTool, teardownEmbedded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
be
public static final me.prettyprint.cassandra.serializers.ByteBufferSerializer be
EntityIndexCleanup
public EntityIndexCleanup()
createOptions
public org.apache.commons.cli.Options createOptions()
- Overrides:
createOptions
in class ToolBase
runTool
public void runTool(org.apache.commons.cli.CommandLine line)
throws Exception
- Specified by:
runTool
in class ToolBase
- Throws:
Exception
Copyright © 2012. All Rights Reserved.