@Equality public interface DataSpec
DataStore
object to obtain it.
A DataSpec has a small memory footprint, is cheap to produce,
and can be examined to determine what data is required.
The data specification is an aggregation of the following items:
Two DataSpecs should evaluate equal if their specification of the
above items have the same content, that is if they would generate
the same TupleSequence
when presented to a DataStore
.
Modifier and Type | Method and Description |
---|---|
UserDataReader |
createUserDataReader()
Returns an object that can be used to read the mask and coordinate
values from a row sequence derived from this object's source table.
|
Coord |
getCoord(int icoord)
Returns the coord reader that can read the data for one of this
object's output columns.
|
int |
getCoordCount()
Returns the number of columns that this object produces.
|
String |
getCoordId(int icoord)
Returns an identifier for one of the the columns produced by this object.
|
String |
getMaskId()
Returns an identifier for the row mask for this object.
|
StarTable |
getSourceTable()
Returns the table object from which this data spec's data is obtained.
|
ValueInfo[] |
getUserCoordInfos(int icoord)
Returns the metadata, if known, for the values supplied by the user
to provide data for one of this object's output columns.
|
DomainMapper[] |
getUserCoordMappers(int icoord)
Returns the domain mappers to use for the values supplied by the user
to provide data for one of this object's output columns.
|
boolean |
isCoordBlank(int icoord)
Indicates whether the value for a given coord specified by this object
is known to have a constant, blank value in all cases.
|
boolean |
isMaskTrue()
Indicates whether the mask flag specified by this object
is known always to be true.
|
StarTable getSourceTable()
int getCoordCount()
String getMaskId()
String getCoordId(int icoord)
icoord
- column indexCoord getCoord(int icoord)
icoord
- column indexValueInfo[] getUserCoordInfos(int icoord)
icoord
- column indexDomainMapper[] getUserCoordMappers(int icoord)
icoord
- column indexUserDataReader createUserDataReader()
boolean isMaskTrue()
getUserDataReader().getMaskFlag
will always return true.
False negatives are permitted; even if the result is false, the
mask may in fact always return true.boolean isCoordBlank(int icoord)
icoord
- column indexCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.