Package com.google.cloud.bigquery
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AvroOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static AvroOptions.Builder
newBuilder()
Returns a builder for a AvroOptions object.AvroOptions.Builder
toBuilder()
String
toString()
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).-
Methods inherited from class com.google.cloud.bigquery.FormatOptions
avro, bigtable, csv, datastoreBackup, getType, googleSheets, iceberg, json, of, orc, parquet
-
-
-
-
Method Detail
-
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 classFormatOptions
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFormatOptions
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classFormatOptions
-
newBuilder
public static AvroOptions.Builder newBuilder()
Returns a builder for a AvroOptions object.
-
-