Package org.rcsb.cif.schema
Class DelegatingColumn<T>
java.lang.Object
org.rcsb.cif.schema.DelegatingColumn<T>
- All Implemented Interfaces:
Column<T>
- Direct Known Subclasses:
DelegatingFloatColumn,DelegatingIntColumn,DelegatingStrColumn
public class DelegatingColumn<T> extends Object implements Column<T>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DelegatingColumn(Column<?> delegate)DelegatingColumn(Column<?> delegate, Class<T> type) -
Method Summary
Modifier and Type Method Description TgetArray()Access to the underlying data array.StringgetColumnName()The name of thisColumn.intgetRowCount()The number of rows in thisColumn.StringgetStringData(int row)Access to entries of thisColumnwithout any assumptions about the content type.ValueKindgetValueKind(int row)States theValueKindfor a particular row.
-
Field Details
-
Constructor Details
-
Method Details
-
getColumnName
Description copied from interface:ColumnThe name of thisColumn.- Specified by:
getColumnNamein interfaceColumn<T>- Returns:
- the
Stringwhich is used to acquire this column from its parentCategory
-
getRowCount
public int getRowCount()Description copied from interface:Column- Specified by:
getRowCountin interfaceColumn<T>- Returns:
- the length of 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<T>- Parameters:
row- index of the element to retrieve- Returns:
- the
Stringrepresentation of the corresponding row
-
getValueKind
Description copied from interface:ColumnStates theValueKindfor a particular row. Elements may either be 'present', 'not_specified' (.) or 'unknown' (?).- Specified by:
getValueKindin interfaceColumn<T>- Parameters:
row- index of the element for which theValueKindshould be retrieved- Returns:
- the corresponding
ValueKindenum entry
-
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.
-