public class DescRes extends Object implements Described, HasSizeinfo
Constructor and Description |
---|
DescRes(String description,
long time,
MolsRes mols,
IndexProjector indexProjector,
UnguardedPagedOverlap desc,
OverlapAnalysisContext context)
Construct.
|
Modifier and Type | Method and Description |
---|---|
OverlapAnalysisContext |
getContext()
Get overlap analysis context.
|
UnguardedPagedOverlap |
getDesc()
Get descriptor storage with default metric.
|
String |
getDescription()
Human readable description of the instance.
|
DescriptorInfo |
getDescriptorInfo(String url,
String name)
Get info about the represented set.
|
UnguardedPagedOverlap |
getDescWithMetric(String metric)
Get descriptor storage with specified metric.
|
IndexProjector |
getIndexProjector()
Get master index projector.
|
Linenote<ComparisonContext<?,?,?>> |
getMetricSpec()
Available metrics specification.
|
MolsRes |
getMols()
Associated molecules storage.
|
String |
getMolsRef()
URL of associated molecules storage.
|
long |
getSize()
Size of the represented resource.
|
SizeInfoDto |
getSizeInfo(Function<Object,Long> sizeof,
Function<Object,Long> sizeof2)
Invoke size calculation.
|
long |
getTime()
Init/load/prepare time of the represented resource.
|
public DescRes(String description, long time, MolsRes mols, IndexProjector indexProjector, UnguardedPagedOverlap desc, OverlapAnalysisContext context)
description
- Instance descriptiontime
- Associated init/create/load timemols
- Associated molecule storageindexProjector
- Index projector from the descriptors storagedesc
- Descriptor storagecontext
- Associated contextpublic SizeInfoDto getSizeInfo(Function<Object,Long> sizeof, Function<Object,Long> sizeof2)
HasSizeinfo
getSizeInfo
in interface HasSizeinfo
sizeof
- Function for deep size calculation, expected to handle NoSize
annotations.sizeof2
- Function for deep size calculation of the large storagespublic String getDescription()
Described
getDescription
in interface Described
public DescriptorInfo getDescriptorInfo(String url, String name)
url
- Url of the descriptor data to exposename
- Name of the descriptor data to exposepublic OverlapAnalysisContext getContext()
public UnguardedPagedOverlap getDesc()
DescriptorGenerator.defaultComparison()
and
MetricFactory.defaultComparison()
).public UnguardedPagedOverlap getDescWithMetric(String metric)
getMetricSpec()
.metric
- Metric description. null
and empty String
(""
) is accepted and the default
metric (see getDesc()
is returned.public IndexProjector getIndexProjector()
public MolsRes getMols()
public String getMolsRef()
public Linenote<ComparisonContext<?,?,?>> getMetricSpec()
public long getSize()
Described
getSize
in interface Described
ResourceInfo.sizeDescription()