Class ItemForestBuilderImpl
Object
ItemForestBuilderImpl
- All Implemented Interfaces:
ItemForestBuilder<ItemForestBuilderImpl>,ItemListBuilder<ItemForestBuilderImpl>
@PublicApi
@NotThreadSafe
public final class ItemForestBuilderImpl
extends Object
implements ItemForestBuilder<ItemForestBuilderImpl>
Fat builder - uses memory-hungry but fast RowTree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()longnextFragment(ItemForest fragment) nextRow(ItemIdentity itemId) Appends a new row with the given item identity.nextRow(ItemIdentity itemId, long semantics) Appends a new row with the given item identity and semantics.
-
Constructor Details
-
ItemForestBuilderImpl
public ItemForestBuilderImpl()
-
-
Method Details
-
nextRow
Description copied from interface:ItemListBuilderAppends a new row with the given item identity.- Specified by:
nextRowin interfaceItemListBuilder<ItemForestBuilderImpl>- Parameters:
itemId- Item identity- Returns:
- this instance
-
nextRow
Description copied from interface:ItemListBuilderAppends a new row with the given item identity and semantics.- Specified by:
nextRowin interfaceItemListBuilder<ItemForestBuilderImpl>- Parameters:
itemId- Item identitysemantics- Semantics code. Semantics is still work in progress, and passing any value other than 0 may result in undefined behavior.- Returns:
- this instance
-
nextLevel
- Specified by:
nextLevelin interfaceItemForestBuilder<ItemForestBuilderImpl>
-
prevLevel
- Specified by:
prevLevelin interfaceItemForestBuilder<ItemForestBuilderImpl>
-
nextFragment
- Specified by:
nextFragmentin interfaceItemForestBuilder<ItemForestBuilderImpl>
-
build
-
getCurrentRowId
public long getCurrentRowId()
-