Package org.rcsb.cif.model.binary
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
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description BinaryFloatColumn(String name, int rowCount, double[] data, int[] mask) -
Method Summary
Modifier and Type Method Description doubleget(int row)Type-safe access to the native type of data stored in this column.double[]getArray()Access to the underlying data array.StringgetStringData(int row)Access to entries of thisColumnwithout any assumptions about the content type.Methods inherited from class org.rcsb.cif.model.binary.BinaryColumn
getColumnName, getMask, getRowCount, getValueKindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rcsb.cif.model.Column
getColumnName, getRowCount, getValueKind, isDefined, stringData, valueKinds
-
Constructor Details
-
Method Details
-
get
public double get(int row)Description copied from interface:FloatColumnType-safe access to the native type of data stored in this column.- Specified by:
getin interfaceFloatColumn- Parameters:
row- the index to retrieve- Returns:
- an double value
-
getStringData
Description copied from interface:ColumnAccess to entries of thisColumnwithout 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:
getStringDatain interfaceColumn<double[]>- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
getArray
public double[] getArray()Description copied from interface:ColumnAccess 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.
-