Tabnine Logo
DoFnSignature$FieldAccessDeclaration.field
Code IndexAdd Tabnine to your IDE (free)

How to use
field
method
in
org.apache.beam.sdk.transforms.reflect.DoFnSignature$FieldAccessDeclaration

Best Java code snippets using org.apache.beam.sdk.transforms.reflect.DoFnSignature$FieldAccessDeclaration.field (Showing top 3 results out of 315)

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

checkArgument(
  fieldAccessDeclaration != null, "No FieldAccessDeclaration  defined with id", id);
checkArgument(fieldAccessDeclaration.field().getType().equals(FieldAccessDescriptor.class));
try {
 fieldAccessDescriptor = (FieldAccessDescriptor) fieldAccessDeclaration.field().get(fn);
} catch (IllegalAccessException e) {
 throw new RuntimeException(e);
origin: org.apache.beam/beam-sdks-java-core

@Test
public void testFieldAccess() throws IllegalAccessException {
 FieldAccessDescriptor descriptor = FieldAccessDescriptor.withFieldNames("foo", "bar");
 DoFn<String, String> doFn =
   new DoFn<String, String>() {
    @FieldAccess("foo")
    final FieldAccessDescriptor fieldAccess = descriptor;
    @ProcessElement
    public void process(@FieldAccess("foo") Row row) {}
   };
 DoFnSignature sig = DoFnSignatures.getSignature(doFn.getClass());
 assertThat(sig.fieldAccessDeclarations().get("foo"), notNullValue());
 Field field = sig.fieldAccessDeclarations().get("foo").field();
 assertThat(field.getName(), equalTo("fieldAccess"));
 assertThat(field.get(doFn), equalTo(descriptor));
 assertThat(sig.processElement().getRowParameter(), notNullValue());
}
origin: org.apache.beam/beam-runners-core-java

checkArgument(
  fieldAccessDeclaration != null, "No FieldAccessDeclaration defined with id", id);
checkArgument(fieldAccessDeclaration.field().getType().equals(FieldAccessDescriptor.class));
try {
 fieldAccessDescriptor = (FieldAccessDescriptor) fieldAccessDeclaration.field().get(fn);
} catch (IllegalAccessException e) {
 throw new RuntimeException(e);
org.apache.beam.sdk.transforms.reflectDoFnSignature$FieldAccessDeclarationfield

Popular methods of DoFnSignature$FieldAccessDeclaration

  • create
  • id

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JOptionPane (javax.swing)
  • Best IntelliJ 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