Package com.google.appengine.tools.mapreduce

Examples of com.google.appengine.tools.mapreduce.BigQueryDataField.mode()


      if (field.getType().isPrimitive()) {
        return BigQueryFieldMode.REQUIRED.getValue();
      }
      return null;
    }
    return bq.mode().getValue();
  }

  /**
   * @param parameterizedType
   * @return runtime type of the generic parameter.
View Full Code Here


   * Returns true if the field is annotated as a required bigquery field.
   */
  static boolean isFieldRequired(Field field) {
    BigQueryDataField bqAnnotation = field.getAnnotation(BigQueryDataField.class);

    return (bqAnnotation != null && bqAnnotation.mode().equals(BigQueryFieldMode.REQUIRED))
        || field.getType().isPrimitive();
  }

  /**
   * Returns if a {@link BigqueryFieldMarshaller} exists for the field either in the map provided or
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.