congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OperationChain$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
OperationChain$Builder
in
uk.gov.gchq.gaffer.operation

Best Java code snippets using uk.gov.gchq.gaffer.operation.OperationChain$Builder (Showing top 20 results out of 315)

origin: uk.gov.gchq.gaffer/doc

final OperationChain<Void> addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new TimestampSetElementGenerator())
        .input(dummyData)
origin: uk.gov.gchq.gaffer/example-graph

final OperationChain addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new DataGenerator15())
        .objects(DataUtils.loadData(getData()))
final OperationChain<CloseableIterable<Edge>> job = new OperationChain.Builder()
    .first(new GetEdges.Builder<EntitySeed>()
        .addSeed(new EntitySeed("1"))
        .build())
origin: uk.gov.gchq.gaffer/example-graph

final List<String> data = DataUtils.loadData(getData());
final OperationChain addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(dataGenerator)
        .objects(data)
        .first(new GetAdjacentEntitySeeds.Builder()
            .addSeed(new EntitySeed("1"))
            .inOutType(IncludeIncomingOutgoingType.OUTGOING)
origin: uk.gov.gchq.gaffer/doc

final OperationChain<Void> addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new RoadAndRoadUseElementGenerator())
        .input(IOUtils.readLines(StreamUtil.openStream(getClass(), "RoadAndRoadUse/data.txt")))
        .first(new GetAdjacentIds.Builder()
            .input(new EntitySeed("M5"))
            .inOutType(IncludeIncomingOutgoingType.OUTGOING)
origin: uk.gov.gchq.gaffer/doc

final OperationChain<Void> addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new LongsSketchElementGenerator())
        .input(dummyData)
origin: uk.gov.gchq.gaffer/example-graph

final OperationChain addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new DataGenerator10())
        .objects(dummyData)
origin: uk.gov.gchq.gaffer/doc

.first(new GetAllElements.Builder()
    .view(new View.Builder()
        .edge("edge")
origin: uk.gov.gchq.gaffer/doc

.first(new GetAllElements.Builder()
    .view(new View.Builder()
        .edge("edge")
origin: uk.gov.gchq.gaffer/doc

public Iterable<? extends Element> sortOnCountAndTransientProperty() {
  final OperationChain<Iterable<? extends Element>> opChain = new OperationChain.Builder()
      .first(new GetElements.Builder()
          .input(new EntitySeed(1), new EntitySeed(2))
          .view(new View.Builder()
origin: uk.gov.gchq.gaffer/doc

public Element minCountAndTransientProperty() {
  final OperationChain<Element> opChain = new OperationChain.Builder()
      .first(new GetElements.Builder()
          .input(new EntitySeed(1), new EntitySeed(2))
          .view(new View.Builder()
origin: uk.gov.gchq.gaffer/doc

public Element maxCountAndTransientProperty() {
  final OperationChain<Element> opChain = new OperationChain.Builder()
      .first(new GetElements.Builder()
          .input(new EntitySeed(1), new EntitySeed(2))
          .view(new View.Builder()
origin: uk.gov.gchq.gaffer/accumulo-store

store.execute(new OperationChain.Builder()
    .first(new SampleDataForSplitPoints.Builder()
        .addInputMapperPairs(operation.getInputMapperPairs())
        .jobInitialiser(operation.getJobInitialiser())
origin: uk.gov.gchq.gaffer/doc

final OperationChain<Void> addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(new BoundedTimestampSetElementGenerator())
        .input(dummyData)
origin: uk.gov.gchq.gaffer/doc

final OperationChain addOpChain = new OperationChain.Builder()
    .first(new GenerateElements.Builder<String>()
        .generator(dataGenerator)
        .input(data)
origin: uk.gov.gchq.gaffer/doc

  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);
  }
}
origin: uk.gov.gchq.gaffer/doc

  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);
  }
}
origin: uk.gov.gchq.gaffer/doc

  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);
  }
}
origin: uk.gov.gchq.gaffer/doc

  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);
  }
}
origin: uk.gov.gchq.gaffer/example-graph

protected Graph createExampleGraph() {
  final Graph graph = new Graph.Builder()
      .addSchemas(StreamUtil.openStreams(getClass(), "/example/operation/schema"))
      .storeProperties(StreamUtil.openStream(getClass(), "/example/operation/mockaccumulostore.properties"))
      .build();
  // Create data generator
  final DataGenerator dataGenerator = new DataGenerator();
  // Load data into memory
  final List<String> data = DataUtils.loadData(StreamUtil.openStream(getClass(), "/example/operation/data.txt", true));
  //add the edges to the graph using an operation chain consisting of:
  //generateElements - generating edges from the data (note these are directed edges)
  //addElements - add the edges to the graph
  final OperationChain addOpChain = new OperationChain.Builder()
      .first(new GenerateElements.Builder<String>()
          .generator(dataGenerator)
          .objects(data)
          .build())
      .then(new AddElements())
      .build();
  try {
    graph.execute(addOpChain, new User());
  } catch (OperationException e) {
    throw new RuntimeException(e);
  }
  return graph;
}
origin: uk.gov.gchq.gaffer/example-graph

  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);
  }
}
uk.gov.gchq.gaffer.operationOperationChain$Builder

Most used methods

  • <init>
  • first

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now