Package org.rcsb.cif.model
Class Column.EmptyColumn
java.lang.Object
org.rcsb.cif.model.Column.EmptyColumn
public static class Column.EmptyColumn extends Object implements Column<Void>
This dummy instance is created and returned if an absent Column is requested for a Category.
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static Column.EmptyColumnUNNAMED_COLUMN -
Constructor Summary
Constructors Constructor Description EmptyColumn(String name) -
Method Summary
Modifier and Type Method Description VoidgetArray()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.Stream<ValueKind>valueKinds()
-
Field Details
-
Constructor Details
-
Method Details
-
getColumnName
Description copied from interface:ColumnThe name of thisColumn.- Specified by:
getColumnNamein interfaceColumn<Void>- 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<Void>- 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<Void>- 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<Void>- Parameters:
row- index of the element for which theValueKindshould be retrieved- Returns:
- the corresponding
ValueKindenum entry
-
valueKinds
Description copied from interface:Column- Specified by:
valueKindsin interfaceColumn<Void>- Returns:
- a
Streamwith a number of ValueKinds equal to row count
-
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.
-