Tabnine Logo
org.apache.beam.sdk.transforms.reflect
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.beam.sdk.transforms.reflect

Best Java code snippets using org.apache.beam.sdk.transforms.reflect (Showing top 20 results out of 315)

origin: org.apache.beam/beam-runners-core-construction-java

@Setup
public void setup() {
 invoker = DoFnInvokers.invokerFor(splittableFn);
 invoker.invokeSetup();
}
origin: org.apache.beam/beam-sdks-java-core

 private static boolean isSplittable(DoFn<?, ?> fn) {
  return DoFnSignatures.signatureForDoFn(fn).processElement().isSplittable();
 }
}
origin: org.apache.beam/beam-sdks-java-core

public void checkArgument(boolean condition, String message, Object... args) {
 if (!condition) {
  throwIllegalArgument(message, args);
 }
}
origin: org.apache.beam/beam-sdks-java-core

private static Implementation getRestrictionCoderDelegation(
  TypeDescription doFnType, DoFnSignature signature) {
 if (signature.processElement().isSplittable()) {
  if (signature.getRestrictionCoder() == null) {
   return MethodDelegation.to(
     new DefaultRestrictionCoder(signature.getInitialRestriction().restrictionT()));
  } else {
   return new DowncastingParametersMethodDelegation(
     doFnType, signature.getRestrictionCoder().targetMethod());
  }
 } else {
  return ExceptionMethod.throwing(UnsupportedOperationException.class);
 }
}
origin: org.apache.beam/beam-sdks-java-core

private DoFn.ProcessContinuation invokeProcessElement(DoFn<String, String> fn) {
 return DoFnInvokers.invokerFor(fn).invokeProcessElement(mockArgumentProvider);
}
origin: org.apache.beam/beam-sdks-java-core

 static DoFnSignature.ProcessElementMethod analyzeProcessElementMethod(AnonymousMethod method)
   throws Exception {
  return DoFnSignatures.analyzeProcessElementMethod(
    errors(),
    TypeDescriptor.of(FakeDoFn.class),
    method.getMethod(),
    TypeDescriptor.of(Integer.class),
    TypeDescriptor.of(String.class),
    FnAnalysisContext.create());
 }
}
origin: org.apache.beam/beam-sdks-java-core

private static Implementation splitRestrictionDelegation(
  TypeDescription doFnType, DoFnSignature signature) {
 if (signature.splitRestriction() == null) {
  return MethodDelegation.to(DefaultSplitRestriction.class);
 } else {
  return new DowncastingParametersMethodDelegation(
    doFnType, signature.splitRestriction().targetMethod());
 }
}
origin: org.apache.beam/beam-sdks-java-core

private void invokeOnTimer(DoFn<String, String> fn, String timerId) {
 OnTimerInvokers.forTimer(fn, timerId).invokeOnTimer(mockArgumentProvider);
}
origin: org.apache.beam/beam-sdks-java-core

public void addTimerDeclarations(Iterable<TimerDeclaration> decls) {
 for (TimerDeclaration decl : decls) {
  addTimerDeclaration(decl);
 }
}
origin: org.apache.beam/beam-runners-flink_2.10

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(doFn);
 doFnInvoker.invokeSetup();
}
origin: org.apache.beam/beam-sdks-java-core

 public void checkNotNull(Object value, String message, Object... args) {
  if (value == null) {
   throwIllegalArgument(message, args);
  }
 }
}
origin: org.apache.beam/beam-runners-google-cloud-dataflow-java

@Setup
public void setup() {
 DoFnInvokers.invokerFor(underlyingDoFn).invokeSetup();
}
origin: org.apache.beam/beam-runners-core-java

@Setup
public void setup() throws Exception {
 invoker = DoFnInvokers.invokerFor(fn);
 invoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-flink_2.10

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(dofn);
 doFnInvoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-flink_2.11

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(dofn);
 doFnInvoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-core-construction-java

@Setup
public void setup() {
 invoker = DoFnInvokers.invokerFor(fn);
 invoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-flink_2.11

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(doFn);
 doFnInvoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-core-construction-java

@Setup
public void setup() {
 this.invoker = DoFnInvokers.invokerFor(fn);
 invoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-flink

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(dofn);
 doFnInvoker.invokeSetup();
}
origin: org.apache.beam/beam-runners-flink

@Override
public void open(Configuration parameters) throws Exception {
 doFnInvoker = DoFnInvokers.invokerFor(doFn);
 doFnInvoker.invokeSetup();
}
org.apache.beam.sdk.transforms.reflect

Most used classes

  • DoFnInvokers
    Static utilities for working with DoFnInvoker.
  • DoFnInvoker
    Interface for invoking the DoFn processing methods.Instantiating a DoFnInvoker associates it with a
  • DoFnSignature
    Describes the signature of a DoFn, in particular, which features it uses, which extra context it req
  • DoFnSignatures
    Utilities for working with DoFnSignature. See #getSignature.
  • DoFnSignature$ProcessElementMethod
    Describes a DoFn.ProcessElement method.
  • DoFnSignature$FieldAccessDeclaration,
  • DoFnSignature$Parameter,
  • DoFnSignature$GetInitialRestrictionMethod,
  • DoFnSignature$GetRestrictionCoderMethod,
  • DoFnSignature$NewTrackerMethod,
  • DoFnSignature$OnTimerMethod,
  • DoFnSignature$OnWindowExpirationMethod,
  • DoFnSignature$Parameter$OutputReceiverParameter,
  • DoFnSignature$Parameter$RowParameter,
  • DoFnSignature$Parameter$StateParameter,
  • DoFnSignature$Parameter$TimerParameter,
  • DoFnSignature$SplitRestrictionMethod,
  • DoFnSignature$TimerDeclaration,
  • DoFnSignatures$ErrorReporter
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