@Override public void runExamples() { try { final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); final JobDetail jobDetails = getGraph().execute(opChain, new User("user01")); jobId = jobDetails.getJobId(); } catch (final OperationException e) { throw new RuntimeException(e); } getJobResults(); }
public Map<String, CloseableIterable<?>> exportMultipleResultsToGafferResultCacheAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache.Builder() .key("edges") .build()) .then(new GetAllEntities()) .then(new ExportToGafferResultCache.Builder() .key("entities") .build()) .then(new GetExports.Builder() .exports(new GetGafferResultCacheExport.Builder() .key("edges") .build(), new GetGafferResultCacheExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToGafferResultCacheAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache.Builder() .key("edges") .build()) .then(new GetAllEntities()) .then(new ExportToGafferResultCache.Builder() .key("entities") .build()) .then(new GetExports.Builder() .exports(new GetGafferResultCacheExport.Builder() .key("edges") .build(), new GetGafferResultCacheExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToSetAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet.Builder() .key("edges") .build()) .then(new GetAllEntities()) .then(new ExportToSet.Builder() .key("entities") .build()) .then(new GetExports.Builder() .exports(new GetSetExport.Builder() .key("edges") .build(), new GetSetExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToSetAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet.Builder() .key("edges") .build()) .then(new GetAllEntities()) .then(new ExportToSet.Builder() .key("entities") .build()) .then(new GetExports.Builder() .exports(new GetSetExport.Builder() .key("edges") .build(), new GetSetExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); } }
public CloseableIterable<?> simpleExportAndGetWithPagination() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet()) .then(new GetSetExport.Builder() .start(2) .end(4) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); }
public CloseableIterable<?> simpleExportAndGetWithPagination() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet()) .then(new GetSetExport.Builder() .start(2) .end(4) .build()) .build(); // --------------------------------------------------------- return runExample(opChain); }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain); return jobDetail; }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain); return jobDetail; }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetGafferResultCacheExport()) .build(); // --------------------------------------------------------- return runExample(opChain); }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToGafferResultCache()) .then(new GetGafferResultCacheExport()) .build(); // --------------------------------------------------------- return runExample(opChain); }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet()) .then(new GetSetExport()) .build(); // --------------------------------------------------------- return runExample(opChain); }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllEdges()) .then(new ExportToSet()) .then(new GetSetExport()) .build(); // --------------------------------------------------------- return runExample(opChain); }