public interface DistDataSource
Object which contributes data to a DistributedSequenceDB.
DistDataSource is responsible for providing some information about what sequences exist, what the SymbolList associated with it and what features are here. Typically, the objects returned from DistributedSequenceDB will be composed from information from multiple DistDataSource instances.
Modifier and Type | Method and Description |
---|---|
FeatureHolder |
getFeatures(FeatureFilter ff)
Get all features matching a FeatureFilter provided by this DistDataSource.
|
FeatureHolder |
getFeatures(String id,
FeatureFilter ff,
boolean recurse)
Get all features matching a FeatureFilter on a Sequence with an ID and recurse flats.
|
Sequence |
getSequence(String id)
Get a Sequence object for an ID.
|
boolean |
hasFeatures(String id)
Find out if this DistDataSource can provide features on a sequence with a particular ID.
|
boolean |
hasSequence(String id)
Find out if this DistDataSource provides the sequence information for a sequence ID.
|
Set |
ids(boolean topLevel)
Get the complete set of sequence IDs provided by this DistDataSource.
|
boolean hasSequence(String id) throws BioException
id
- the String id of a sequenceBioException
boolean hasFeatures(String id) throws BioException
id
- the String id of a sequenceBioException
FeatureHolder getFeatures(FeatureFilter ff) throws BioException
ff
- the FeatureFilter to search withBioException
FeatureHolder getFeatures(String id, FeatureFilter ff, boolean recurse) throws BioException
id
- the ID of the Sequenceff
- the FeatureFilter to search withrecurse
- true if we are to recurse the feature hierachy, false otherwiseBioException
- if the features could not be fetchedSequence getSequence(String id) throws BioException
id
- the ID of the Sequence to fetchBioException
- if either the ID could not be resolved or if the
sequence could not be fetchedSet ids(boolean topLevel) throws BioException
Get the complete set of sequence IDs provided by this DistDataSource.
If the recurse flat is true, the IDs associated with the top level will be returned. However, if it is false, then IDs should be returned for all levels of an assembly hierachy including the top level IDs.
topLevel
- if true, return top level IDs, otherwise all IDsBioException
- if the IDs could not be fetchedCopyright © 2014 BioJava. All rights reserved.