Tabnine Logo
OperationChain$Builder.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uk.gov.gchq.gaffer/example-graph

public CloseableIterable<?> simpleExportAndGet() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetAllEdges())
      .then(new ExportToGafferResultCache())
      .then(new GetGafferResultCacheExport())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain);
}
origin: uk.gov.gchq.gaffer/doc

  public Iterable<? extends EntitySeed> toStreamExample() {
    // ---------------------------------------------------------
    final OperationChain<Iterable<? extends EntitySeed>> opChain = new OperationChain.Builder()
        .first(new GetElements.Builder()
            .input(new EntitySeed(1), new EntitySeed(2))
            .build())
        .then(new ToEntitySeeds())
        .build();
    // ---------------------------------------------------------

    return runExample(opChain, null);
  }
}
origin: uk.gov.gchq.gaffer/doc

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

  public List<? extends Element> toListExample() {
    // ---------------------------------------------------------
    final OperationChain<List<? extends Element>> opChain = new OperationChain.Builder()
        .first(new GetElements.Builder()
            .input(new EntitySeed(1), new EntitySeed(2))
            .build())
        .then(new ToList<>())
        .build();
    // ---------------------------------------------------------

    return runExample(opChain, null);
  }
}
origin: uk.gov.gchq.gaffer/doc

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

  public GroupCounts countAllElementGroupsWithLimit() {
    // ---------------------------------------------------------
    final OperationChain<GroupCounts> opChain = new OperationChain.Builder()
        .first(new GetAllElements<>())
        .then(new CountGroups(5))
        .build();
    // ---------------------------------------------------------

    return runExample(opChain);
  }
}
origin: uk.gov.gchq.gaffer/example-graph

public CloseableIterable<?> simpleExportAndGet() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetAllEdges())
      .then(new ExportToSet())
      .then(new GetSetExport())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain);
}
origin: uk.gov.gchq.gaffer/doc

public CloseableIterable<?> getExport() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetGafferResultCacheExport.Builder()
          .jobId(jobDetail.getJobId())
          .build())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain, null);
}
origin: uk.gov.gchq.gaffer/doc

public void limitElementsTo3WithoutTruncation() {
  // ---------------------------------------------------------
  final OperationChain<Iterable<? extends Element>> opChain = new OperationChain.Builder()
      .first(new GetAllElements())
      .then(new Limit<>(3, false))
      .build();
  // ---------------------------------------------------------
  showExample(opChain, "Setting this flag to false will " +
      "throw an error instead of truncating the iterable. " +
      "In this case there are more than 3 elements, so " +
      "when executed a LimitExceededException would be thrown.");
}
origin: uk.gov.gchq.gaffer/doc

public Iterable<? extends Element> limitElementsTo3() {
  // ---------------------------------------------------------
  final OperationChain<Iterable<? extends Element>> opChain = new OperationChain.Builder()
      .first(new GetAllElements())
      .then(new Limit<>(3))
      .build();
  // ---------------------------------------------------------
  return runExample(opChain, null);
}
origin: uk.gov.gchq.gaffer/example-graph

public CloseableIterable<?> simpleExportAndGet() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetAllEdges())
      .then(new ExportToSet())
      .then(new GetSetExport())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain);
}
origin: uk.gov.gchq.gaffer/example-graph

  public JobDetail getJobDetailsInOperationChain() {
    // ---------------------------------------------------------
    final OperationChain<JobDetail> opChain = new OperationChain.Builder()
        .first(new GetAllEdges())
        .then(new GetJobDetails())
        .build();
    // ---------------------------------------------------------

    final JobDetail jobDetail = runExample(opChain);
    jobId = jobDetail.getJobId();
    return jobDetail;
  }
}
origin: uk.gov.gchq.gaffer/example-graph

  public Iterable<Element> limitElementsTo3InChain() {
    // ---------------------------------------------------------
    final OperationChain<CloseableIterable<Element>> opChain = new OperationChain.Builder()
        .first(new GetAllElements<>())
        .then(new Limit.Builder<Element>()
            .limitResults(3)
            .build())
        .build();
    // ---------------------------------------------------------

    return runExample(opChain);
  }
}
origin: uk.gov.gchq.gaffer/doc

  public Stream<? extends Element> toStreamExample() {
    // ---------------------------------------------------------
    final OperationChain<Stream<? extends Element>> opChain = new Builder()
        .first(new GetElements.Builder()
            .input(new EntitySeed(1), new EntitySeed(2))
            .build())
        .then(new ToStream<>())
        .build();
    // ---------------------------------------------------------

    return runExample(opChain, null);
  }
}
origin: uk.gov.gchq.gaffer/doc

  public GroupCounts countAllElementGroupsWithLimit() {
    // ---------------------------------------------------------
    final OperationChain<GroupCounts> opChain = new OperationChain.Builder()
        .first(new GetAllElements())
        .then(new CountGroups(5))
        .build();
    // ---------------------------------------------------------

    return runExample(opChain, null);
  }
}
origin: uk.gov.gchq.gaffer/doc

public GroupCounts countAllElementGroups() {
  // ---------------------------------------------------------
  final OperationChain<GroupCounts> opChain = new OperationChain.Builder()
      .first(new GetAllElements())
      .then(new CountGroups())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain, null);
}
origin: uk.gov.gchq.gaffer/doc

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

  public Element[] toArrayExample() {
    // ---------------------------------------------------------
    final OperationChain<? extends Element[]> opChain = new OperationChain.Builder()
        .first(new GetElements.Builder()
            .input(new EntitySeed(1), new EntitySeed(2))
            .build())
        .then(new ToArray<>())
        .build();
    // ---------------------------------------------------------

    return runExample(opChain, null);
  }
}
origin: uk.gov.gchq.gaffer/example-graph

public CloseableIterable<?> getExport() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetGafferResultCacheExport.Builder()
          .jobId(jobDetail.getJobId())
          .build())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain);
}
origin: uk.gov.gchq.gaffer/example-graph

public CloseableIterable<?> simpleExportAndGet() {
  // ---------------------------------------------------------
  final OperationChain<CloseableIterable<?>> opChain = new OperationChain.Builder()
      .first(new GetAllEdges())
      .then(new ExportToGafferResultCache())
      .then(new GetGafferResultCacheExport())
      .build();
  // ---------------------------------------------------------
  return runExample(opChain);
}
uk.gov.gchq.gaffer.operationOperationChain$Builder<init>

Popular methods of OperationChain$Builder

  • first

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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