Class Column.EmptyColumn

java.lang.Object
org.rcsb.cif.model.Column.EmptyColumn
All Implemented Interfaces:
Column<Void>
Enclosing interface:
Column<T>

public static class Column.EmptyColumn
extends Object
implements Column<Void>
This dummy instance is created and returned if an absent Column is requested for a Category.
  • 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<Void>
      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<Void>
      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<Void>
      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<Void>
      Parameters:
      row - index of the element for which the ValueKind should be retrieved
      Returns:
      the corresponding ValueKind enum entry
    • valueKinds

      public Stream<ValueKind> valueKinds()
      Description copied from interface: Column
      Stream of all ValueKind annotations.
      Specified by:
      valueKinds in interface Column<Void>
      Returns:
      a Stream with a number of ValueKinds equal to row count
    • getArray

      public Void 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<Void>
      Returns:
      an array of the appropriate type (int[], double[], String[])