Package uk.ac.starlink.ttools.task
Class TapMapper
java.lang.Object
uk.ac.starlink.ttools.task.TapMapper
- All Implemented Interfaces:
TableMapper
Mapper that does the work for
TapQuerier.- Since:
- 21 Feb 2011
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMapping(uk.ac.starlink.task.Environment env, int nup) Creates a new mapping object, using a given execution environment for any additional required state.static uk.ac.starlink.task.Parameter<String> createUploadNameParameter(String label) Returns a parameter for acquiring the label under which one of the uploaded tables should be presented to the TAP server.uk.ac.starlink.task.Parameter<String> Returns the parameter used to acquire ADQL query text.Returns the parameter used to acquire the content coding.uk.ac.starlink.task.Parameter<String> Returns the parameter used to acquire the query language variant.uk.ac.starlink.task.Parameter<Long> Returns the parameter used to acquire the output record limit.uk.ac.starlink.task.Parameter<?>[]Returns the parameters defined by this mapper.Returns the result reader used by this mapper.uk.ac.starlink.task.Parameter<Boolean> Returns the parameter used to acquire the sync/async flag.Returns the TapServiceParams used by this mapper to acquire a TAP service.uk.ac.starlink.task.Parameter<uk.ac.starlink.votable.VOTableWriter> Returns the parameter used to acquire the table upload writer.
-
Constructor Details
-
TapMapper
public TapMapper()
-
-
Method Details
-
getParameters
public uk.ac.starlink.task.Parameter<?>[] getParameters()Description copied from interface:TableMapperReturns the parameters defined by this mapper.- Specified by:
getParametersin interfaceTableMapper- Returns:
- parameter array
-
createMapping
public TableMapping createMapping(uk.ac.starlink.task.Environment env, int nup) throws uk.ac.starlink.task.TaskException Description copied from interface:TableMapperCreates a new mapping object, using a given execution environment for any additional required state.- Specified by:
createMappingin interfaceTableMapper- Parameters:
env- execution environmentnup- number of input tables that the mapping will operate on if known; -1 if not- Throws:
uk.ac.starlink.task.TaskException
-
getTapServiceParams
Returns the TapServiceParams used by this mapper to acquire a TAP service.- Returns:
- tap service params
-
getAdqlParameter
Returns the parameter used to acquire ADQL query text.- Returns:
- adql parameter
-
getSyncParameter
Returns the parameter used to acquire the sync/async flag.- Returns:
- sync parameter
-
getLanguageParameter
Returns the parameter used to acquire the query language variant.- Returns:
- language parameter
-
getMaxrecParameter
Returns the parameter used to acquire the output record limit.- Returns:
- maxrec parameter
-
getContentCodingParameter
Returns the parameter used to acquire the content coding.- Returns:
- content coding parameter
-
getVOTableWriterParameter
public uk.ac.starlink.task.Parameter<uk.ac.starlink.votable.VOTableWriter> getVOTableWriterParameter()Returns the parameter used to acquire the table upload writer.- Returns:
- upload writer parameter
-
getResultReader
Returns the result reader used by this mapper.- Returns:
- result reader
-
createUploadNameParameter
Returns a parameter for acquiring the label under which one of the uploaded tables should be presented to the TAP server.- Parameters:
label- parameter suffix- Returns:
- upload name parameter
-