public class TitanIndexRepair extends Object
| Constructor and Description |
|---|
TitanIndexRepair() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cassandraRepair(Properties titanProperties,
String indexName,
String indexType,
String partitioner) |
static void |
cassandraRepair(String titanPropertiesPath,
String indexName,
String indexType,
String partitioner)
Start a reindex job on Cassandra using the supplied TitanGraph configuration
on the index specified by the name and type parameters.
|
static void |
hbaseRepair(Properties titanProperties,
String indexName,
String indexType) |
static void |
hbaseRepair(String titanPropertiesPath,
String indexName,
String indexType)
Start a reindex job on HBase using the supplied TitanGraph configuration
on the index specified by the name and type parameters.
|
static void |
main(String[] args) |
static void |
repairIndex(HadoopGraph hg) |
public static void cassandraRepair(String titanPropertiesPath, String indexName, String indexType, String partitioner) throws Exception
titanPropertiesPath should use one of the Cassandra storage backends.titanPropertiesPath - a Titan configuration file that could be passed to
TitanFactory.open(String)indexName - the name of the index to repairindexType - the type of the index to repairpartitioner - the full package.classname of the keyspace partitioner in use
on the Cassandra cluster, e.g. "org.apache.cassandra.dht.Murmur3Partitioner"Exceptionpublic static void cassandraRepair(Properties titanProperties, String indexName, String indexType, String partitioner) throws Exception
Exceptionpublic static void hbaseRepair(String titanPropertiesPath, String indexName, String indexType) throws Exception
titanPropertiesPath should use the HBase storage backend.titanPropertiesPath - a Titan configuration file that could be passed to
TitanFactory.open(String)indexName - The name of the index to repairindexType - The type of the index to repairExceptionpublic static void hbaseRepair(Properties titanProperties, String indexName, String indexType) throws Exception
Exceptionpublic static void repairIndex(HadoopGraph hg) throws Exception
ExceptionCopyright © 2012–2016. All rights reserved.