You are viewing documentation for Structure Server and Data Center version 5.5 and patch releases. For other versions, see Version Index or [Structure Cloud].
With this release we add a few constants and methods to the Java API. The changes are backwards-compatible.
JIRA Version | New API Version |
---|---|
7.x | 16.2.0 |
See Structure API Versions for full version information and downloads.
We have added two constants and two static methods to support the new Tempo Account grouper and the corresponding built-in item type:
CoreStructureGenerators.GROUPER_TEMPO_ACCOUNT
CoreItemTypes.TEMPO_ACCOUNT
CoreIdentities.tempoAccount(int accountId)
CoreIdentities.isTempoAccount(ItemIdentity itemId)
RowManager.findRows()
We have added two new findRows()
methods to the RowManager
interface:
void findRows(ItemIdentity itemId, LongPredicate consumer)
default void findRows(ItemIdentity itemId, LongConsumer consumer)
These methods guarantee that all row IDs your consumer
is given during the findRows()
call can be resolved by getRow(long)
without throwing a MissingRowException
. You can use the first method to stop the scan early.
The original method LongIterator findRows(ItemIdentity itemId)
has been converted to a default method. Please note that this method will scan all rows before returning and that the row IDs produced by the resulting LongIterator
may get deleted after the findRows()
call returns.