|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.AbstractDataSpec
uk.ac.starlink.ttools.plot2.task.JELDataSpec
public class JELDataSpec
DataSpec implementation that works with JEL expressions. The mask and coord ID values are based on strings which are evaluated as JEL expressions in the context of the DataSpec's table. The constraints on ID equality are therefore met since equal expression strings applied against the same table must yield the same values.
Constructor Summary | |
---|---|
JELDataSpec(StarTable table,
String maskExpr,
CoordValue[] coordValues)
Constructor. |
Method Summary | |
---|---|
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 ic)
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. |
Object |
getCoordId(int ic)
Returns an identifier for one of the the columns produced by this object. |
Object |
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 ic)
Returns the metadata, if known, 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. |
Methods inherited from class uk.ac.starlink.ttools.plot2.data.AbstractDataSpec |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JELDataSpec(StarTable table, String maskExpr, CoordValue[] coordValues) throws TaskException
table
- table containing datamaskExpr
- JEL boolean expression giving mask inclusion;
null may be used to indicate unconditional inclusioncoordValues
- coordinate definitions for which columns
are required, along with the JEL expressions
for their values
TaskException
Method Detail |
---|
public StarTable getSourceTable()
DataSpec
public int getCoordCount()
DataSpec
public Object getCoordId(int ic)
DataSpec
ic
- column index
public Coord getCoord(int ic)
DataSpec
ic
- column index
public Object getMaskId()
DataSpec
public ValueInfo[] getUserCoordInfos(int ic)
DataSpec
ic
- column index
public UserDataReader createUserDataReader()
DataSpec
public boolean isCoordBlank(int icoord)
DataSpec
icoord
- column index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |