Interface BulkExtractor<T>
-
- Type Parameters:
T
- The type of the entities being processed.
- All Known Implementing Classes:
ContentModifiersBulkExtractor
,ContentPermissionsBulkExtractor
public interface BulkExtractor<T>
Provides operations that allow bulk extraction of multiple entities at once, as an alternative to theExtractor2
interface.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(Class<?> type)
void
extractAll(Collection<T> entities, Class<? extends T> entityType, BiConsumer<T,FieldDescriptor> fieldDescriptorConsumer)
Extracts all indexable data from all of the given entities
-
-
-
Method Detail
-
canHandle
boolean canHandle(@Nonnull Class<?> type)
- Returns:
- true of the extractor can handle entities of the given type, else false
-
extractAll
void extractAll(@Nonnull Collection<T> entities, @Nonnull Class<? extends T> entityType, @Nonnull BiConsumer<T,FieldDescriptor> fieldDescriptorConsumer)
Extracts all indexable data from all of the given entities- Parameters:
entities
- the entities to extract the fields fromfieldDescriptorConsumer
- the consumer into which allFieldDescriptor
s should be pushed.
-
-