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 java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected int deleteBatchSize  
    protected java.util.function.Consumer<java.util.Collection<PK>> deleteConsumer  
    protected java.util.Optional<java.lang.Integer> logBatchSize  
    protected io.datarouter.scanner.Scanner<T> scanner  
    protected java.util.function.Predicate<T> shouldDelete  
  • Constructor Summary

    Constructors 
    Constructor Description
    BaseNodeVacuumBuilder​(io.datarouter.scanner.Scanner<T> scanner, java.util.function.Predicate<T> shouldDelete, java.util.function.Consumer<java.util.Collection<PK>> deleteConsumer)  
  • Method Summary

    Modifier and Type Method Description
    protected abstract C self()  
    C withDeleteBatchSize​(int batchSize)  
    C withLogBatchSize​(int logBatchSize)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • scanner

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

      protected final java.util.function.Predicate<T> shouldDelete
    • deleteConsumer

      protected final java.util.function.Consumer<java.util.Collection<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>> deleteConsumer
    • deleteBatchSize

      protected int deleteBatchSize
    • logBatchSize

      protected java.util.Optional<java.lang.Integer> logBatchSize
  • Constructor Details

    • BaseNodeVacuumBuilder

      public BaseNodeVacuumBuilder​(io.datarouter.scanner.Scanner<T> scanner, java.util.function.Predicate<T> shouldDelete, java.util.function.Consumer<java.util.Collection<PK>> deleteConsumer)
  • Method Details