.options(operation.getOptions()) .build()) .then(new SplitStoreFromFile.Builder() .inputPath(operation.getSplitsFilePath()) .options(operation.getOptions())
@Override public void runExamples() { try { final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .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(); }
.then(new ExportToSet<>()) .then(new DiscardOutput()) .then(new GetSetExport()) .build();
public Map<String, CloseableIterable<?>> exportMultipleResultsToGafferResultCacheAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache.Builder<>() .key("edges") .build()) .then(new DiscardOutput()) .then(new GetAllElements()) .then(new ExportToGafferResultCache.Builder<>() .key("entities") .build()) .then(new DiscardOutput()) .then(new GetExports.Builder() .exports(new GetGafferResultCacheExport.Builder() .key("edges") .build(), new GetGafferResultCacheExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToSetAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet.Builder<>() .key("edges") .build()) .then(new DiscardOutput()) .then(new GetAllElements()) .then(new ExportToSet.Builder<>() .key("entities") .build()) .then(new DiscardOutput()) .then(new GetExports.Builder() .exports(new GetSetExport.Builder() .key("edges") .build(), new GetSetExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToGafferResultCacheAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache.Builder<>() .key("edges") .build()) .then(new DiscardOutput()) .then(new GetAllElements()) .then(new ExportToGafferResultCache.Builder<>() .key("entities") .build()) .then(new DiscardOutput()) .then(new GetExports.Builder() .exports(new GetGafferResultCacheExport.Builder() .key("edges") .build(), new GetGafferResultCacheExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); } }
public Map<String, CloseableIterable<?>> exportMultipleResultsToSetAndGetAllResults() { // --------------------------------------------------------- final OperationChain<Map<String, CloseableIterable<?>>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet.Builder<>() .key("edges") .build()) .then(new DiscardOutput()) .then(new GetAllElements()) .then(new ExportToSet.Builder<>() .key("entities") .build()) .then(new DiscardOutput()) .then(new GetExports.Builder() .exports(new GetSetExport.Builder() .key("edges") .build(), new GetSetExport.Builder() .key("entities") .build()) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); } }
public Iterable<?> simpleExportAndGetWithPagination() { // --------------------------------------------------------- final OperationChain<Iterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet<>()) .then(new DiscardOutput()) .then(new GetSetExport.Builder() .start(2) .end(4) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public JobDetail getJobDetailsInOperationChain() { // --------------------------------------------------------- final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- final JobDetail jobDetail = runExample(opChain, null); jobId = jobDetail.getJobId(); return jobDetail; } }
public Iterable<?> simpleExportAndGetWithPagination() { // --------------------------------------------------------- final OperationChain<Iterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet<>()) .then(new DiscardOutput()) .then(new GetSetExport.Builder() .start(2) .end(4) .build()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public Iterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<Iterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet<>()) .then(new DiscardOutput()) .then(new GetSetExport()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public Iterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<Iterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToSet<>()) .then(new DiscardOutput()) .then(new GetSetExport()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetGafferResultCacheExport()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public CloseableIterable<?> simpleExportAndGet() { // --------------------------------------------------------- final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetGafferResultCacheExport()) .build(); // --------------------------------------------------------- return runExample(opChain, null); }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> opChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // ---------------------------------------------- ----------- jobDetail = runExample(opChain, null); return jobDetail; }
public JobDetail exportAndGetJobDetails() { // --------------------------------------------------------- final OperationChain<JobDetail> exportOpChain = new OperationChain.Builder() .first(new GetAllElements()) .then(new ExportToGafferResultCache<>()) .then(new DiscardOutput()) .then(new GetJobDetails()) .build(); // --------------------------------------------------------- jobDetail = runExample(exportOpChain, null); return jobDetail; }