Class LuceneDataSearchEngine.ReindexOptions

    • Constructor Detail

      • ReindexOptions

        public ReindexOptions()
    • Method Detail

      • getDataIterator

        public final DataIterator<Data> getDataIterator​(java.lang.Class<? extends Data> jstoreClazz,
                                                        java.util.Collection<java.lang.Class<? extends Data>> jcmsDbClasses)
        Retrieve a DataIterator for the specified class, applying the filter configured in this ReindexOptions.
        Parameters:
        jstoreClazz - the Class of objects to iterate in JStore index
        jcmsDbClasses - the Classes of objects to iterate in JcmsDB
        Returns:
        a new DataIterator. never return null
      • all

        public static LuceneDataSearchEngine.ReindexOptions all()
        Retrieve a new ReindexOptions suitable to clear index and reindex all Data.
        Returns:
        a new ReindexOptions instance (never return null)
      • after

        public static LuceneDataSearchEngine.ReindexOptions after​(java.util.Date date)
        Retrieve a new ReindexOptions suitable to reindex Data modified after specified date.
        Returns:
        a new ReindexOptions instance (never return null)