Package org.rcsb.cif.model
Class FloatColumn
- java.lang.Object
-
- org.rcsb.cif.model.BaseColumn
-
- org.rcsb.cif.model.FloatColumn
-
- All Implemented Interfaces:
Column
public class FloatColumn extends BaseColumn
Type-safe column which containsfloatvalues as entries.
-
-
Constructor Summary
Constructors Constructor Description FloatColumn(String name)FloatColumn(String name, int rowCount, Object data, int[] mask)FloatColumn(String name, int rowCount, String data, int[] startToken, int[] endToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleget(int row)Retrieve the double value at the given row index.double[]getBinaryData()For internal use.protected StringgetBinaryStringData(int row)DoubleStreamvalues()Type-safeStreamof all elements.-
Methods inherited from class org.rcsb.cif.model.BaseColumn
getColumnName, getRowCount, getStringData, getValueKind, isDefined, valueKinds
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rcsb.cif.model.Column
stringData
-
-
-
-
Method Detail
-
get
public double get(int row)
Retrieve the double value at the given row index.- Parameters:
row- the index to retrieve- Returns:
- the value - 0 if not present according to
BaseColumn.getValueKind(int)
-
values
public DoubleStream values()
Type-safeStreamof all elements.- Returns:
- a
DoubleStreamof values
-
getBinaryStringData
protected String getBinaryStringData(int row)
- Specified by:
getBinaryStringDatain classBaseColumn
-
getBinaryData
public double[] getBinaryData()
For internal use. Returns the decoded binary data which this column wraps. Returns null for text columns.- Returns:
- the
double[]data
-
-