@PublicSpi
public interface BulkAttributeLoader
An optional interface for bulk attribute preloading. If your AttributeLoader
implements
this interface, then Structure will call its preload(LongSet, ItemForest, AttributeContext)
method once before it starts calling loadValue()
or loadChildrenValues()
.
Modifier and Type | Method and Description |
---|---|
void |
preload(com.almworks.integers.LongSet rowIds,
ItemForest forest,
AttributeContext context)
This method is called before all calls to
loadValue() or loadChildrenValues()
in the current calculation. |
void preload(@NotNull com.almworks.integers.LongSet rowIds, @NotNull ItemForest forest, @NotNull AttributeContext context)
This method is called before all calls to loadValue()
or loadChildrenValues()
in the current calculation. It is given the set of all row IDs for which the values are needed,
so that it can load some data more efficiently, e.g. run a JQL query for all relevant issues.
The result can be stored inside the loader instance itself or in the provided AttributeContext
.
The current loader's dependencies are not yet loaded at the time of the call.
rowIds
- The set of row IDs for which attribute values are needed.forest
- The ItemForest
for which attribute values are needed.context
- The context
.Copyright © 2018 ALM Works. All Rights Reserved.