@PublicApi public interface VersionedRowValues extends RowValues
This interface extends the basic RowValues
interface, which allows retrieving values calculated by
StructureAttributeService
. In addition to the basic RowValues.get(Long, AttributeSpec)
method,
this interface provides information about the version of the forest and version of the items that were current
when the values were calculated.
Also, the interface provides a way to retrieve AttributeTrail
for each requested attribute, which
is needed to correctly implement value caching.
RowValues
,
StructureAttributeService
Modifier and Type | Interface and Description |
---|---|
static class |
VersionedRowValues.EmptyVersionedRowValues
Empty result implementation
|
Modifier and Type | Field and Description |
---|---|
static VersionedRowValues |
EMPTY
Constant empty result
|
Modifier and Type | Method and Description |
---|---|
DataVersion |
getForestVersion()
Returns the version of the forest (defined by
ForestSpec ), which was used to calculate the values. |
DataVersion |
getItemsVersion()
Returns the global version of items, which was current when the values were calculated.
|
static final VersionedRowValues EMPTY
@NotNull DataVersion getForestVersion()
Returns the version of the forest (defined by ForestSpec
), which was used to calculate the values.
Forest version is important for "aggregate" and "propagate" values.
When values are requested for arbitrary forest (not defined by a ForestSpec
), this method
always returns DataVersion.ZERO
.
@NotNull DataVersion getItemsVersion()
ItemTracker
Copyright © 2018 ALM Works. All Rights Reserved.