Interface IntermediateResultBlockBuilder
- All Known Implementing Classes:
GenericIntermediateResultBlockBuilderImpl
public interface IntermediateResultBlockBuilder
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SolutionMapping element) Adds the given result element to the currently-created block.Finishes the creation of the currently-created block and returns this block.intReturns the current size of the currently-created block.voidStarts creating a newIntermediateResultBlock.
-
Method Details
-
startNewBlock
void startNewBlock()Starts creating a newIntermediateResultBlock. If creating the previous block has not been completed by callingfinishCurrentBlock(), then everything that was added into that uncompleted block will be discarded. -
add
Adds the given result element to the currently-created block. If no block was started so far or this is the first call of this method afterfinishCurrentBlock()was called, then a new block will be started first (i.e.,startNewBlock()will be called internally). -
sizeOfCurrentBlock
int sizeOfCurrentBlock()Returns the current size of the currently-created block. If no block was started so far or this is the first call of this method afterfinishCurrentBlock()was called, then this method returns 0 (zero). -
finishCurrentBlock
IntermediateResultBlock finishCurrentBlock()Finishes the creation of the currently-created block and returns this block.
-