Class BinaryFloatColumn

java.lang.Object
org.rcsb.cif.model.binary.BinaryColumn<double[]>
org.rcsb.cif.model.binary.BinaryFloatColumn
All Implemented Interfaces:
Column<double[]>, FloatColumn

public class BinaryFloatColumn
extends BinaryColumn<double[]>
implements FloatColumn
  • Constructor Details

  • Method Details

    • get

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

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