Class DelegatingColumn<T>

java.lang.Object
org.rcsb.cif.schema.DelegatingColumn<T>
All Implemented Interfaces:
Column<T>
Direct Known Subclasses:
DelegatingFloatColumn, DelegatingIntColumn, DelegatingStrColumn

public class DelegatingColumn<T>
extends Object
implements Column<T>
  • Field Details

  • Constructor Details

  • Method Details

    • getColumnName

      public String getColumnName()
      Description copied from interface: Column
      The name of this Column.
      Specified by:
      getColumnName in interface Column<T>
      Returns:
      the String which is used to acquire this column from its parent Category
    • getRowCount

      public int getRowCount()
      Description copied from interface: Column
      The number of rows in this Column. 0 indicates undefined a Column.
      Specified by:
      getRowCount in interface Column<T>
      Returns:
      the length of this Column
    • getStringData

      public String getStringData​(int row)
      Description copied from interface: Column
      Access to entries of this Column without any assumptions about the content type. No checks about the validity of the row argument are made. Values smaller than 0 or larger or equal to the row count will raise exceptions.
      Specified by:
      getStringData in interface Column<T>
      Parameters:
      row - index of the element to retrieve
      Returns:
      the String representation of the corresponding row
    • getValueKind

      public ValueKind getValueKind​(int row)
      Description copied from interface: Column
      States the ValueKind for a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).
      Specified by:
      getValueKind in interface Column<T>
      Parameters:
      row - index of the element for which the ValueKind should be retrieved
      Returns:
      the corresponding ValueKind enum entry
    • getArray

      public T getArray()
      Description copied from interface: Column
      Access to the underlying data array. Useful, when you are sure that your dealing with binary data and want the most efficient access to all data in this column. For text data, this will be 'slow' as it requires the creation of the requested array by parsing all data in this column.
      Specified by:
      getArray in interface Column<T>
      Returns:
      an array of the appropriate type (int[], double[], String[])