public class HitMerger extends Object implements SearchListener
SearchListener.Echo, SearchListener.FilterByLength, SearchListener.Tee, SearchListener.Wrapper
Constructor and Description |
---|
HitMerger(SearchListener delegate,
int minLength)
Build a new HitMerger that will pass events on to a delegate.
|
Modifier and Type | Method and Description |
---|---|
void |
endSearch(String seqID)
Indicates that a sequence has been searched against a DataStore.
|
void |
hit(int hitID,
int queryOffset,
int hitOffset,
int hitLength)
There has been a hit between the query sequence and a database
sequence.
|
void |
startSearch(String seqID)
Indicates that a sequence is about to be searched against a DataStore.
|
public HitMerger(SearchListener delegate, int minLength)
delegate
- the SearchListener to inform of all merged and
filtered hitsminLength
- the minimum length a hit must reach to be passed onpublic void startSearch(String seqID)
SearchListener
startSearch
in interface SearchListener
seqID
- the id of the sequence to be searchedpublic void hit(int hitID, int queryOffset, int hitOffset, int hitLength)
SearchListener
hit
in interface SearchListener
hitID
- the number of the sequence hit; resolvable by
String id = DataStore.seqNameForID(hitID)queryOffset
- the offset into the query sequencehitOffset
- the offset into the sequence hit in the databasehitLength
- the number of symbols hitpublic void endSearch(String seqID)
SearchListener
endSearch
in interface SearchListener
seqID
- the id of the sequence to be searchedCopyright © 2014 BioJava. All rights reserved.