Class BinaryIntColumn

java.lang.Object
org.rcsb.cif.model.binary.BinaryColumn<int[]>
org.rcsb.cif.model.binary.BinaryIntColumn
All Implemented Interfaces:
Column<int[]>, IntColumn

public class BinaryIntColumn
extends BinaryColumn<int[]>
implements IntColumn
  • Constructor Details

  • Method Details

    • get

      public int get​(int row)
      Description copied from interface: IntColumn
      Type-safe access to the native type of data stored in this column.
      Specified by:
      get in interface IntColumn
      Parameters:
      row - the index to retrieve
      Returns:
      an int value
    • 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<int[]>
      Parameters:
      row - index of the element to retrieve
      Returns:
      the String representation of the corresponding row
    • getArray

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