Package one.microstream.storage.types
Interface StorageDataFileItemIterator.ItemProcessor
-
- All Known Implementing Classes:
StorageDataConverterTypeBinaryToCsv.UTF8
- Enclosing interface:
- StorageDataFileItemIterator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface StorageDataFileItemIterator.ItemProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(long address, long remaninigBufferedData)Processes the entity at the given address for the passed availableEntityLength.
-
-
-
Method Detail
-
accept
boolean accept(long address, long remaninigBufferedData)Processes the entity at the given address for the passed availableEntityLength. If the available length is not sufficient (i.e. the processor requires the full entity but the available data is incomplete), the processor aborts and returns false, signaling the iterator to reload the entity in the next batch in full. Otherwise, the processor processes the entity (e.g. only register header values) and returns true.- Parameters:
address- the address at which the entity data is located (starting with the entity header).remaninigBufferedData- the remaining entity data in the buffer, potentially less then the actual entity length.- Returns:
- true if the entity has been processed, false (impliying recall) otherwise.
-
-