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

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

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

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

private static Map<String, DoFnSignature.FieldAccessDeclaration> analyzeFieldAccessDeclaration(
  ErrorReporter errors, Class<?> fnClazz) {
 Map<String, FieldAccessDeclaration> fieldAccessDeclarations = new HashMap<>();
 for (Field field : declaredFieldsWithAnnotation(DoFn.FieldAccess.class, fnClazz, DoFn.class)) {
  field.setAccessible(true);
  DoFn.FieldAccess fieldAccessAnnotation = field.getAnnotation(DoFn.FieldAccess.class);
  if (!Modifier.isFinal(field.getModifiers())) {
   errors.throwIllegalArgument(
     "Non-final field %s annotated with %s. Field access declarations must be final.",
     field.toString(), DoFn.FieldAccess.class.getSimpleName());
   continue;
  }
  Class<?> fieldAccessRawType = field.getType();
  if (!fieldAccessRawType.equals(FieldAccessDescriptor.class)) {
   errors.throwIllegalArgument(
     "Field %s annotated with %s, but the value was not of type %s",
     field.toString(),
     DoFn.FieldAccess.class.getSimpleName(),
     FieldAccessDescriptor.class.getSimpleName());
  }
  fieldAccessDeclarations.put(
    fieldAccessAnnotation.value(),
    FieldAccessDeclaration.create(fieldAccessAnnotation.value(), field));
 }
 return fieldAccessDeclarations;
}
org.apache.beam.sdk.transforms.reflectDoFnSignature$FieldAccessDeclarationcreate

Popular methods of DoFnSignature$FieldAccessDeclaration

  • field
  • id

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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