Class AvroOptions

java.lang.Object
com.google.cloud.bigquery.FormatOptions
com.google.cloud.bigquery.AvroOptions
All Implemented Interfaces:
Serializable

public final class AvroOptions extends FormatOptions
Google BigQuery options for AVRO format. This class wraps some properties of AVRO files used by BigQuery to parse external data.
See Also:
  • Method Details

    • useAvroLogicalTypes

      public Boolean useAvroLogicalTypes()
      Returns whether BigQuery should interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).
    • toBuilder

      public AvroOptions.Builder toBuilder()
    • toString

      public String toString()
      Overrides:
      toString in class FormatOptions
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FormatOptions
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class FormatOptions
    • newBuilder

      public static AvroOptions.Builder newBuilder()
      Returns a builder for a AvroOptions object.