java.lang.Object
com.inductiveautomation.factorypmi.application.binding.util.NonSerializingDataset
All Implemented Interfaces:
NonSerializableDataset, Dataset, Serializable

public class NonSerializingDataset extends Object implements NonSerializableDataset
A wrapper around a delegate dataset which is only useful because there is a special serialization delegate registered for it which only serializes the column names and types, but not any of the rows. Part of FB6626
See Also:
  • Constructor Details

    • NonSerializingDataset

      public NonSerializingDataset(List<String> columnNames, List<Class<?>> columnTypes)
    • NonSerializingDataset

      public NonSerializingDataset(Dataset delegate)
  • Method Details

    • getDelegateDataset

      public Dataset getDelegateDataset()
      Specified by:
      getDelegateDataset in interface NonSerializableDataset
    • getColumnNames

      public List<String> getColumnNames()
      Description copied from interface: Dataset
      Returns an unmodifiable list of this dataset's column names, in order.
      Specified by:
      getColumnNames in interface Dataset
    • getColumnTypes

      public List<Class<?>> getColumnTypes()
      Description copied from interface: Dataset
      Returns an unmodifiable list of this dataset's column types, in order.
      Specified by:
      getColumnTypes in interface Dataset
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: Dataset
      Returns the number of columns.
      Specified by:
      getColumnCount in interface Dataset
    • getRowCount

      public int getRowCount()
      Description copied from interface: Dataset
      Return the number of rows in this dataset
      Specified by:
      getRowCount in interface Dataset
    • getColumnIndex

      public int getColumnIndex(String name)
      Description copied from interface: Dataset
      Returns the index of the given column, case-insensitive
      Specified by:
      getColumnIndex in interface Dataset
      Parameters:
      name - the name of the column to look up
      Returns:
      the index of the column
    • getColumnName

      public String getColumnName(int col)
      Description copied from interface: Dataset
      Returns the name of the given column.
      Specified by:
      getColumnName in interface Dataset
    • getColumnType

      public Class<?> getColumnType(int col)
      Description copied from interface: Dataset
      Returns the type of the given column.
      Specified by:
      getColumnType in interface Dataset
    • getValueAt

      public Object getValueAt(int row, int col)
      Description copied from interface: Dataset
      Returns the value in the dataset at the given location.
      Specified by:
      getValueAt in interface Dataset
    • getQualityAt

      public QualityCode getQualityAt(int row, int col)
      Description copied from interface: Dataset
      Returns the quality of the value at the given location.
      Specified by:
      getQualityAt in interface Dataset
    • getValueAt

      public Object getValueAt(int row, String colName)
      Description copied from interface: Dataset
      Returns the value at the given row and at a column named colName. Column name matching is case insensitive.
      Specified by:
      getValueAt in interface Dataset
    • getPrimitiveValueAt

      public double getPrimitiveValueAt(int row, int col)
      Description copied from interface: Dataset
      If the given column is a numeric type or a Date, then the value will be returned as a double. (Charts uses this functionality to provide a seamless interface with certain optimized dataset implementations.
      Specified by:
      getPrimitiveValueAt in interface Dataset
    • binarySearch

      public int binarySearch(int column, Object key)
      Description copied from interface: Dataset
      Performs a binary search on the specified column, looking for the specified key. Column MUST be sorted in ascending order. Dataset provides an inefficient default implementation of binary search that allocates a new array list for the entire column.
      Specified by:
      binarySearch in interface Dataset
      Returns:
      index of the search key, if it is contained in the list; otherwise, (-(insertion point) - 1). The insertion point is defined as the point at which the key would be inserted into the list: the index of the first element greater than the key, or list.size(), if all elements in the list are less than the specified key. Note that this guarantees the return value will be greater than or equal to 0, but only if the key is found.
    • toString

      public String toString()
      Overrides:
      toString in class Object