jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


com.chemaxon.overlap.bruteforce
Class UnguardedPagedOverlap.SearchMostSimilars<T>

Object
  extended by com.chemaxon.overlap.bruteforce.Dissimilarities
      extended by com.chemaxon.overlap.bruteforce.UnguardedPagedOverlap.SearchMostSimilars<T>
Type Parameters:
T - Type of unguarded descriptor
All Implemented Interfaces:
Callable<UnguardedPagedOverlap.SearchMostSimilars<T>>
Enclosing class:
UnguardedPagedOverlap<T extends Serializable>

static class UnguardedPagedOverlap.SearchMostSimilars<T>
extends Dissimilarities
implements Callable<UnguardedPagedOverlap.SearchMostSimilars<T>>

Search multiple pages for most n-most similar structures.


Field Summary
(package private)  UnguardedDissimilarityCalculator<T> comparator
          Underlying comparator.
(package private)  int firstId
          ID of the first target in pages.
(package private)  List<ImmutableList<T>> pages
          Targets.
(package private)  T query
          Query.
(package private)  int totalPagesSize
          Number of total pages size.
 
Fields inherited from class com.chemaxon.overlap.bruteforce.Dissimilarities
dissimArray, idArray
 
Constructor Summary
UnguardedPagedOverlap.SearchMostSimilars(UnguardedDissimilarityCalculator<T> comparator, T query, List<ImmutableList<T>> pages, int firstId, int size)
          Construct task
 
Method Summary
 UnguardedPagedOverlap.SearchMostSimilars<T> call()
           
 int getTotalTargetCount()
          Get number of total descriptors compared.
 
Methods inherited from class com.chemaxon.overlap.bruteforce.Dissimilarities
getDissimArray, getIdArray, insertSorted, mergeDistinct, mergeSorted, mergeSorted, toList
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comparator

final UnguardedDissimilarityCalculator<T> comparator
Underlying comparator.


pages

final List<ImmutableList<T>> pages
Targets.


query

final T query
Query.


firstId

final int firstId
ID of the first target in pages.


totalPagesSize

int totalPagesSize
Number of total pages size.

Constructor Detail

UnguardedPagedOverlap.SearchMostSimilars

UnguardedPagedOverlap.SearchMostSimilars(UnguardedDissimilarityCalculator<T> comparator,
                                         T query,
                                         List<ImmutableList<T>> pages,
                                         int firstId,
                                         int size)
Construct task

Parameters:
comparator - Underlying comparator
query - Query descriptor to search
pages - Consecutive pages to search
firstId - ID of the first descriptor of the first page
size - Number of most similars to store
Method Detail

call

public UnguardedPagedOverlap.SearchMostSimilars<T> call()
                                                 throws Exception
Specified by:
call in interface Callable<UnguardedPagedOverlap.SearchMostSimilars<T>>
Throws:
Exception

getTotalTargetCount

public int getTotalTargetCount()
Get number of total descriptors compared.

Returns:
Total targets size
Throws:
IllegalStateException - when no call() invoked before

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)