Class Table


  • public class Table
    extends Object
    • Constructor Detail

      • Table

        public Table​(int initialCapacity)
      • Table

        public Table​(List<String> columns,
                     int initialCapacity)
    • Method Detail

      • getNumberOfRows

        public int getNumberOfRows()
      • getNumberOfColumns

        public int getNumberOfColumns()
      • canonicalize

        public void canonicalize()
      • addColumn

        public boolean addColumn​(String column)
      • removeColumn

        public boolean removeColumn​(String column)
      • createReaderRow

        public Table.Row createReaderRow​(int origin)

        Creates a row that can advance till the end of the table, but not beyond it.

        See Also:
        Table.Row.canAdvance()
      • createReaderRow

        public Table.Row createReaderRow​(int origin,
                                         int fence)

        Creates a row that can advance within the specified range.

        Parameters:
        origin - The start line number.
        fence - The end line number, exclusive.
        See Also:
        Table.Row.canAdvance()
      • parallelStream

        @IgnoreJRERequirement
        public Stream<Table.Row> parallelStream()
      • hasExceptions

        public boolean hasExceptions()
      • getException

        public Exception getException​(int index)
      • setException

        public void setException​(int index,
                                 Exception exception)
      • clearExceptions

        public void clearExceptions()
      • apply

        @IgnoreJRERequirement
        public void apply​(Function<?,​?> function)
      • apply

        @IgnoreJRERequirement
        public void apply​(String column,
                          Function<?,​?> function)
      • getValues

        public List<?> getValues​(String column)
      • setValues

        public void setValues​(String column,
                              List<?> values)
      • getInitialCapacity

        public int getInitialCapacity()