Search in sources :

Example 1 with ListFluoQueries

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);
    }
}
Also used : ListFluoQueries(org.apache.rya.indexing.pcj.fluo.api.ListFluoQueries) FluoClient(org.apache.fluo.api.client.FluoClient)

Aggregations

FluoClient (org.apache.fluo.api.client.FluoClient)1 ListFluoQueries (org.apache.rya.indexing.pcj.fluo.api.ListFluoQueries)1