Package org.rcsb.cif.model.binary
Class BinaryIntColumn
java.lang.Object
org.rcsb.cif.model.binary.BinaryColumn<int[]>
org.rcsb.cif.model.binary.BinaryIntColumn
public class BinaryIntColumn extends BinaryColumn<int[]> implements IntColumn
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description BinaryIntColumn(String name, int rowCount, int[] data, int[] mask) -
Method Summary
Modifier and Type Method Description intget(int row)Type-safe access to the native type of data stored in this column.int[]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 int get(int row)Description copied from interface:IntColumnType-safe access to the native type of data stored in this column. -
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<int[]>- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
getArray
public int[] 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.
-