public class RealTimeSearchGuiContext extends Object
Constructor and Description |
---|
RealTimeSearchGuiContext(MasterMoleculeStorage moleculeStorage,
List<DescriptorStorage> descriptorStorages,
ExecutorService executor,
int similarsCount)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
List<Column> |
findMostSimilarMolecules(Molecule query,
int count)
Search most similar molecules.
|
int |
getMoleculeCount()
Size of molecule database.
|
List<Molecule> |
getMolecules(int from,
int to) |
int |
getSimilarsCount() |
public RealTimeSearchGuiContext(MasterMoleculeStorage moleculeStorage, List<DescriptorStorage> descriptorStorages, ExecutorService executor, int similarsCount)
moleculeStorage
- Source of stored moleculesdescriptorStorages
- Columnexecutor
- ExecutorService to usesimilarsCount
- Number of most similars to returnpublic List<Column> findMostSimilarMolecules(Molecule query, int count)
query
- query moleculecount
- number of expected most similar moleculepublic int getMoleculeCount()
public int getSimilarsCount()