jklustor-overlap-0.0.2-20140619012940 (ChemAxon)


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

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

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

Search one page of descriptors against a set of queries.


Field Summary
(package private)  UnguardedDissimilarityCalculator<T> comparator
          Underlying comparator.
(package private)  int firstId
          ID of the first target in page.
(package private)  List<T> page
          Targets.
(package private)  List<T> queries
          Queries.
 
Fields inherited from class com.chemaxon.overlap.bruteforce.Dissimilarities
dissimArray, idArray
 
Constructor Summary
UnguardedPagedOverlap.SearchPage(UnguardedDissimilarityCalculator<T> comparator, List<T> queries, List<T> page, int firstId)
          Construct.
 
Method Summary
 UnguardedPagedOverlap.SearchPage<T> call()
           
 int getPageSize()
          Number of represented targets.
 int getQueriesCount()
          Number of queries.
 
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.


page

final List<T> page
Targets.


queries

final List<T> queries
Queries.


firstId

final int firstId
ID of the first target in page.

Constructor Detail

UnguardedPagedOverlap.SearchPage

UnguardedPagedOverlap.SearchPage(UnguardedDissimilarityCalculator<T> comparator,
                                 List<T> queries,
                                 List<T> page,
                                 int firstId)
Construct.

Parameters:
comparator - Underlying comparator
queries - Queries to search
page - Page of targets
firstId - ID of the first target
Method Detail

getPageSize

public int getPageSize()
Number of represented targets.

Returns:
target count

getQueriesCount

public int getQueriesCount()
Number of queries.

Returns:
query count

call

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

jklustor-overlap-0.0.2-20140619012940 (ChemAxon)