Class BaseIndexingNodeVacuum.BaseIndexingNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.RegularPrimaryKey<PK>,T,C extends BaseIndexingNodeVacuum.BaseIndexingNodeVacuumBuilder<PK,T,C>>

java.lang.Object
io.datarouter.storage.util.BaseIndexingNodeVacuum.BaseIndexingNodeVacuumBuilder<PK,T,C>
Direct Known Subclasses:
RegularPrimaryKeyVacuum.RegularPrimaryKeyVacuumBuilder
Enclosing class:
BaseIndexingNodeVacuum<PK extends io.datarouter.model.key.primary.RegularPrimaryKey<PK>,T>

public abstract static class BaseIndexingNodeVacuum.BaseIndexingNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.RegularPrimaryKey<PK>,T,C extends BaseIndexingNodeVacuum.BaseIndexingNodeVacuumBuilder<PK,T,C>> extends Object
  • Field Details

    • scanner

      protected final io.datarouter.scanner.Scanner<T> scanner
    • shouldDelete

      protected final Predicate<T> shouldDelete
    • deleteConsumer

      protected final Consumer<Collection<PK extends io.datarouter.model.key.primary.RegularPrimaryKey<PK>>> deleteConsumer
    • deleteBatchSize

      protected int deleteBatchSize
    • logBatchSize

      protected Optional<Integer> logBatchSize
  • Constructor Details

    • BaseIndexingNodeVacuumBuilder

      public BaseIndexingNodeVacuumBuilder(io.datarouter.scanner.Scanner<T> scanner, Predicate<T> shouldDelete, Consumer<Collection<PK>> deleteConsumer)
  • Method Details

    • self

      protected abstract C self()
    • withDeleteBatchSize

      public C withDeleteBatchSize(int batchSize)
    • withLogBatchSize

      public C withLogBatchSize(int logBatchSize)