public static void exec(String locationStr1, String indexName1, String locationStr2, String indexName2) {
Location location1 = Location.create(locationStr1) ;
Location location2 = Location.create(locationStr2) ;
int keyLength = SystemTDB.SizeOfNodeId * indexName1.length() ;
int valueLength = 0 ;
String primary = "SPO" ;
String indexOrder = indexName2 ;
String label = indexName1+" => "+indexName2 ;
TupleIndex index1 = Build.openTupleIndex(location1, indexName1, primary, indexName1, 10, 10, keyLength, valueLength) ;
TupleIndex index2 = Build.openTupleIndex(location2, indexName2, primary, indexOrder, 10, 10, keyLength, valueLength) ;
tupleIndexCopy(index1, index2, label) ;
index1.close() ;
index2.close() ;
}