public final class KnnRes extends Object implements Described, HasBasicSizeinfo
| Constructor and Description | 
|---|
KnnRes(String description,
      long time,
      DescRes targets,
      DescRes queries,
      KnnResults knn)
Construct. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDescription()
Human readable description of the instance. 
 | 
KnnResults | 
getKnn()
Represented kNN. 
 | 
KnnData | 
getKnnData(String url,
          String name)  | 
KnnInfo | 
getKnnInfo(String url,
          String name)  | 
IndexProjector | 
getQueryMasterIndexProjector()
Get index projector for queries. 
 | 
MolsRes | 
getQueryMols()
Get query molecules. 
 | 
long | 
getSize()
Size of the represented resource. 
 | 
SizeInfoDto | 
getSizeInfo(Function<Object,Long> sizeof)
Invoke size calculation. 
 | 
IndexProjector | 
getTargetMasterIndexProjector()
Get index projector for targets. 
 | 
MolsRes | 
getTargetMols()
Get target molecules. 
 | 
MasterStorage<?> | 
getTargetProp(String propname)
Get target property. 
 | 
long | 
getTime()
Init/load/prepare time of the represented resource. 
 | 
public KnnRes(String description, long time, DescRes targets, DescRes queries, KnnResults knn)
description - Instance descriptiontime - Associated init/create/load timetargets - Target descriptorsqueries - Query descriptorsknn - kNN results objectpublic SizeInfoDto getSizeInfo(Function<Object,Long> sizeof)
HasBasicSizeinfogetSizeInfo in interface HasBasicSizeinfosizeof - Function for deep size calculation, expected to handle NoSize annotations.public String getDescription()
DescribedgetDescription in interface Describedpublic KnnResults getKnn()
public MasterStorage<?> getTargetProp(String propname)
propname - Name of the property.public MolsRes getTargetMols()
public MolsRes getQueryMols()
public IndexProjector getTargetMasterIndexProjector()
public IndexProjector getQueryMasterIndexProjector()
public long getSize()
DescribedgetSize in interface DescribedResourceInfo.sizeDescription()