Class FieldList

    • Method Detail

      • get

        public Field get​(int index)
        Get schema field by index.
        Specified by:
        get in interface List<Field>
        Specified by:
        get in class AbstractList<Field>
        Parameters:
        index - field (column) index
      • get

        public Field get​(String name)
        Get schema field by name.
        Parameters:
        name - field (column) name
      • getIndex

        public int getIndex​(String name)
        Get schema field's index by name.
        Parameters:
        name - field (column) name
      • of

        public static FieldList of​(Field... fields)
        Returns a new FieldList object, which contains a collection of Field objects in preserved order and represent schema columns.
        Parameters:
        fields - the schema fields
      • of

        public static FieldList of​(Iterable<Field> fields)
        Returns a new FieldList object, which contains a collection of Field objects in preserved order and represent schema columns.
        Parameters:
        fields - the schema fields