uk.ac.starlink.ttools.cone
Class CoverageQuerySequenceFactory

java.lang.Object
  extended by uk.ac.starlink.ttools.cone.CoverageQuerySequenceFactory
All Implemented Interfaces:
QuerySequenceFactory

public class CoverageQuerySequenceFactory
extends Object
implements QuerySequenceFactory

Wrapper QuerySequenceFactory that filters out elements outside of a given coverage object. The ConeQueryRowSequence.getIndex() values of this sequence will be those of the underlying ConeQueryRowSequences, so will miss out values for those elements that are excluded.

Since:
12 Jun 2014
Author:
Mark Taylor

Constructor Summary
CoverageQuerySequenceFactory(QuerySequenceFactory baseFact, Coverage coverage)
          Constructor.
 
Method Summary
 ConeQueryRowSequence createQuerySequence(StarTable table)
          Creates a query sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverageQuerySequenceFactory

public CoverageQuerySequenceFactory(QuerySequenceFactory baseFact,
                                    Coverage coverage)
Constructor.

Parameters:
baseFact - base QuerySequenceFactory
coverage - coverage object
Method Detail

createQuerySequence

public ConeQueryRowSequence createQuerySequence(StarTable table)
                                         throws IOException
Description copied from interface: QuerySequenceFactory
Creates a query sequence.

Specified by:
createQuerySequence in interface QuerySequenceFactory
Parameters:
table - input table
Throws:
IOException


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.