public static final class VersionedRowValues.EmptyVersionedRowValues extends Object implements VersionedRowValues
VersionedRowValues.EmptyVersionedRowValues
EMPTY
Constructor and Description |
---|
EmptyVersionedRowValues() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Long row,
AttributeSpec<T> attribute)
Returns a value for the given row and attribute.
|
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.
|
AttributeTrail |
getTrail(AttributeSpec<?> attribute)
Returns an object that can be used to implement correct value invalidation, in case the value is cached.
|
@NotNull public DataVersion getForestVersion()
VersionedRowValues
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
.
getForestVersion
in interface VersionedRowValues
@NotNull public DataVersion getItemsVersion()
VersionedRowValues
getItemsVersion
in interface VersionedRowValues
ItemTracker
@NotNull public AttributeTrail getTrail(AttributeSpec<?> attribute)
RowValues
public <T> T get(Long row, AttributeSpec<T> attribute)
RowValues
Copyright © 2019 ALM Works. All Rights Reserved.