Interface BulkExtractor<T>

    • 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 from
        fieldDescriptorConsumer - the consumer into which all FieldDescriptors should be pushed.