return list;
}
public void dropIndex(final String indexName) {
String idxName = RedisIndex.normalizeName(indexName);
JRedis db = this.graph.getDatabase();
try {
List<String> keyList = db.keys(RedisIndexKeys.AUTO + idxName + ":*");
for(String key : keyList){
db.del(key);
}
keyList = db.keys(RedisIndexKeys.META_AUTO + idxName + ":*");
for(String key : keyList){
db.del(key);
}
db.lrem(RedisIndexKeys.META_INDICES_AUTO, idxName, 0);
keyList = db.keys(RedisIndexKeys.MANUAL + idxName + ":*");
for(String key : keyList){
db.del(key);
}
keyList = db.keys(RedisIndexKeys.META_MANUAL + idxName + ":*");
for(String key : keyList){
db.del(key);
}
db.lrem(RedisIndexKeys.META_INDICES_MANUAL, idxName, 0);
} catch (RedisException e) {
e.printStackTrace();
}
this.manualIndices.remove(idxName);