Class InternalStrideSample<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>

java.lang.Object
io.datarouter.storage.op.scan.stride.internal.InternalStrideSample<PK>

public class InternalStrideSample<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    boolean interrupted  
    PK lastSeenKey  
    long numKeysTransferred  
    long numRpcs  
    io.datarouter.util.tuple.Range<PK> range  
    long sampleCount  
    java.lang.String strategy  
  • Constructor Summary

    Constructors 
    Constructor Description
    InternalStrideSample​(java.lang.String strategy, io.datarouter.util.tuple.Range<PK> range, PK lastSeenKey, long numRpcs, long numKeysTransferred, long sampleCount, boolean interrupted)  
  • Method Summary

    Modifier and Type Method Description
    StrideSample<PK> toStrideSample​(long totalCount, boolean isLast)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • strategy

      public final java.lang.String strategy
    • range

      public final io.datarouter.util.tuple.Range<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> range
    • lastSeenKey

      public final PK extends io.datarouter.model.key.primary.PrimaryKey<PK> lastSeenKey
    • numRpcs

      public final long numRpcs
    • numKeysTransferred

      public final long numKeysTransferred
    • sampleCount

      public final long sampleCount
    • interrupted

      public final boolean interrupted
  • Constructor Details

    • InternalStrideSample

      public InternalStrideSample​(java.lang.String strategy, io.datarouter.util.tuple.Range<PK> range, PK lastSeenKey, long numRpcs, long numKeysTransferred, long sampleCount, boolean interrupted)
  • Method Details

    • toStrideSample

      public StrideSample<PK> toStrideSample​(long totalCount, boolean isLast)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object