Package com.google.cloud.bigquery
Class FieldList
- All Implemented Interfaces:
Serializable,Iterable<Field>,Collection<Field>,List<Field>
Google BigQuery Table schema fields (columns). Each field has a unique name and index. Fields
with duplicate names are not allowed in BigQuery schema.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Method Summary
Modifier and TypeMethodDescriptionget(int index) Get schema field by index.Get schema field by name.intGet schema field's index by name.static FieldListReturns a newFieldListobject, which contains a collection ofFieldobjects in preserved order and represent schema columns.static FieldListReturns a newFieldListobject, which contains a collection ofFieldobjects in preserved order and represent schema columns.intsize()Total number of fields (columns) in the schema.Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Method Details
-
get
Get schema field by index. -
get
Get schema field by name.- Parameters:
name- field (column) name
-
getIndex
Get schema field's index by name.- Parameters:
name- field (column) name
-
size
public int size()Total number of fields (columns) in the schema.- Specified by:
sizein interfaceCollection<Field>- Specified by:
sizein interfaceList<Field>- Specified by:
sizein classAbstractCollection<Field>
-
of
Returns a newFieldListobject, which contains a collection ofFieldobjects in preserved order and represent schema columns.- Parameters:
fields- the schema fields
-
of
Returns a newFieldListobject, which contains a collection ofFieldobjects in preserved order and represent schema columns.- Parameters:
fields- the schema fields
-