AGIndexFlavors.java
package com.franz.ag.examples;
import com.franz.ag.*;
public class AGIndexFlavors {
@param
@throws
public static void main(String[] args) throws AllegroGraphException {
AllegroGraphConnection ags = new AllegroGraphConnection();
try {
ags.enable();
} catch (Exception e) {
throw new AllegroGraphException("Server connection problem.", e);
}
AllegroGraph ts = ags.renew("indexflavors", AGPaths.TRIPLE_STORES);
String[] origflavors = ts.getIndexFlavors();
AGUtils.printStringArray("original IndexFlavors: ", origflavors);
ts.setIndexFlavors(new String[]{"spogi"});
AGUtils.printStringArray("new IndexFlavors: ", ts.getIndexFlavors());
ts.setIndexFlavors(origflavors);
AGUtils.printStringArray("Reestablish original IndexFlavors: ", ts.getIndexFlavors());
ts.closeTripleStore();
ags.disable();
}
}
Up |
Next