Class Schema (2.34.2)

public final class Schema implements Serializable

This class represents the schema for a Google BigQuery Table or data source.

Inheritance

Object > Schema

Implements

Serializable

Static Methods

of(Field[] fields)

public static Schema of(Field[] fields)

Creates a Schema object given some fields.

Parameter
NameDescription
fieldsField[]
Returns
TypeDescription
Schema

of(Iterable<Field> fields)

public static Schema of(Iterable<Field> fields)

Creates a Schema object given a list of fields.

Parameter
NameDescription
fieldsIterable<Field>
Returns
TypeDescription
Schema

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getFields()

public FieldList getFields()

Returns the fields in the current table schema.

Returns
TypeDescription
FieldList

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides