use of org.apache.rya.indexing.pcj.fluo.api.ListFluoQueries in project incubator-rya by apache.
the class AccumuloListIncrementalQueries method getFluoQueryString.
private String getFluoQueryString(final String ryaInstance, final String fluoAppName) throws Exception {
// Connect to the Fluo application that is updating this instance's PCJs.
final AccumuloConnectionDetails cd = super.getAccumuloConnectionDetails();
try (final FluoClient fluoClient = new FluoClientFactory().connect(cd.getUsername(), new String(cd.getUserPass()), cd.getInstanceName(), cd.getZookeepers(), fluoAppName)) {
// Initialize the PCJ within the Fluo application.
ListFluoQueries listQueries = new ListFluoQueries();
List<String> queries = listQueries.listFluoQueries(fluoClient);
return Joiner.on("\n").join(queries);
}
}
Aggregations