Class BaseNodeVacuum.BaseNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T,C extends BaseNodeVacuum.BaseNodeVacuumBuilder<PK,T,C>>

java.lang.Object
io.datarouter.storage.util.BaseNodeVacuum.BaseNodeVacuumBuilder<PK,T,C>
Direct Known Subclasses:
DatabeanVacuum.DatabeanVacuumBuilder, PrimaryKeyVacuum.PrimaryKeyVacuumBuilder
Enclosing class:
BaseNodeVacuum<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T>

public abstract static class BaseNodeVacuum.BaseNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T,C extends BaseNodeVacuum.BaseNodeVacuumBuilder<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.PrimaryKey<PK>>> deleteConsumer
    • deleteBatchSize

      protected int deleteBatchSize
    • logBatchSize

      protected Optional<Integer> logBatchSize
  • Constructor Details

    • BaseNodeVacuumBuilder

      public BaseNodeVacuumBuilder(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)