org.biomart.martservice.query.Query.getFormatter()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(178)

本文整理了Java中org.biomart.martservice.query.Query.getFormatter方法的一些代码示例,展示了Query.getFormatter的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getFormatter方法的具体详情如下:
包路径:org.biomart.martservice.query.Query
类名称:Query
方法名:getFormatter

Query.getFormatter介绍

暂无

代码示例

代码示例来源:origin: net.sf.taverna.t2.activities/biomart-activity

  1. Query query = biomartQuery.getQuery();
  2. List<Attribute> attributes = query.getAttributes();
  3. String formatter = query.getFormatter();
  4. if (formatter == null) {

代码示例来源:origin: net.sf.taverna.t2/biomart-activity

  1. private void buildOutputPorts() {
  2. Query query = biomartQuery.getQuery();
  3. List<Attribute> attributes = query.getAttributes();
  4. String formatter = query.getFormatter();
  5. if (formatter == null) {
  6. // Create new output ports corresponding to attributes
  7. for (Attribute attribute : attributes) {
  8. String name = attribute.getQualifiedName();
  9. if (attribute.getAttributes() != null) {
  10. addOutput(name, 2, STREAM_RESULTS?1:2);
  11. } else {
  12. addOutput(name, 1, STREAM_RESULTS?0:1);
  13. }
  14. }
  15. } else if (attributes.size() > 0) {
  16. // create one port using the dataset name
  17. Attribute attribute = attributes.get(0);
  18. String name = attribute.getContainingDataset().getName();
  19. addOutput(name, 0, 0);
  20. }
  21. }

代码示例来源:origin: uk.org.mygrid.taverna.processors/taverna-biomart-processor

  1. Object[] resultList = biomartQuery.getMartService().executeQuery(
  2. query);
  3. if (biomartQuery.getQuery().getFormatter() == null) {

代码示例来源:origin: uk.org.mygrid.taverna.processors/taverna-biomart-processor

  1. List<Attribute> attributes = query.getQuery().getAttributes();
  2. Set<String> attributeNames = new HashSet<String>();
  3. String formatter = query.getQuery().getFormatter();
  4. if (formatter == null) {

代码示例来源:origin: net.sf.taverna.t2/biomart-activity

  1. if (biomartQuery.getQuery().getFormatter() == null) {
  2. if (STREAM_RESULTS) {
  3. final List<Attribute> attributes = biomartQuery

代码示例来源:origin: net.sf.taverna.t2.activities/biomart-activity

  1. if (biomartQuery.getQuery().getFormatter() == null) {
  2. if (STREAM_RESULTS) {
  3. final List<Attribute> attributes = biomartQuery

相关文章