Tabnine Logo
Requirements.empty
Code IndexAdd Tabnine to your IDE (free)

How to use
empty
method
in
org.apache.beam.sdk.transforms.Requirements

Best Java code snippets using org.apache.beam.sdk.transforms.Requirements.empty (Showing top 4 results out of 315)

origin: org.apache.beam/beam-sdks-java-core

/** Watches the growth of the given poll function. See class documentation for more details. */
public static <InputT, OutputT> Growth<InputT, OutputT, OutputT> growthOf(
  Growth.PollFn<InputT, OutputT> pollFn) {
 return growthOf(pollFn, Requirements.empty());
}
origin: org.apache.beam/beam-sdks-java-core

/**
 * Wraps a {@link SerializableFunction} as a {@link Contextful} of {@link Fn} with empty {@link
 * Requirements}.
 */
public static <InputT, OutputT> Contextful<Fn<InputT, OutputT>> fn(
  final SerializableFunction<InputT, OutputT> fn) {
 return new Contextful<>((element, c) -> fn.apply(element), Requirements.empty());
}
origin: org.apache.beam/beam-sdks-java-core

@Override
public PCollection<MatchResult.Metadata> expand(PCollection<String> input) {
 PCollection<MatchResult.Metadata> res;
 if (getConfiguration().getWatchInterval() == null) {
  res =
    input.apply(
      "Match filepatterns",
      ParDo.of(new MatchFn(getConfiguration().getEmptyMatchTreatment())));
 } else {
  res =
    input
      .apply(
        "Continuously match filepatterns",
        Watch.growthOf(
            Contextful.of(new MatchPollFn(), Requirements.empty()),
            new ExtractFilenameFn())
          .withPollInterval(getConfiguration().getWatchInterval())
          .withTerminationPerInput(getConfiguration().getWatchTerminationCondition()))
      .apply(Values.create());
 }
 return res.apply(Reshuffle.viaRandomKey());
}
origin: org.apache.beam/beam-sdks-java-core

      standardSeconds(3) /* timeToDeclareOutputFinal */,
      standardSeconds(30) /* timeToFail */),
    Requirements.empty()),
  KV::getKey)
.withTerminationPerInput(Growth.afterTotalOf(standardSeconds(5)))
org.apache.beam.sdk.transformsRequirementsempty

Javadoc

Describes an empty set of requirements.

Popular methods of Requirements

  • requiresSideInputs
    Like #requiresSideInputs(Collection).
  • <init>
  • getSideInputs
    The side inputs that this Contextful needs access to.
  • union

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
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