[Biojava-l] Is there a way to determine the query within a FeatureFilter?

Benjamin Schuster-Boeckler benjamins at Biomax.de
Wed Jan 7 04:25:23 EST 2004


Benjamin Schuster-Boeckler wrote:

> As I understood the principle, a FeatureFilter will be used to test 
> one Feature after the other through it's accept(Feature f) method. Now 
> my problem is that this is _far_ too slow. I need to check millions of 
> Features of which only a few will be selected. So what I want to do is 
> to get the "rule" that the FeatureFilter uses and translate it into a 
> SQL query so I can get the right Features from the database straight 
> away. Unfortunately, I don't see a way how this could be possible. 

Ah, toString() could do it, am I right? I think it returns a neat 
pattern that I could parse token for token...




More information about the Biojava-l mailing list