Class MysqlPrimaryKeyScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>,​F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D>>

java.lang.Object
io.datarouter.scanner.BaseScanner<java.util.List<T>>
io.datarouter.storage.op.scan.BaseNodeScanner<PK,​PK>
io.datarouter.client.mysql.scan.MysqlPrimaryKeyScanner<PK,​D,​F>
All Implemented Interfaces:
io.datarouter.scanner.Scanner<java.util.List<PK>>, java.io.Closeable, java.lang.AutoCloseable

public class MysqlPrimaryKeyScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>,​F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​D>>
extends io.datarouter.storage.op.scan.BaseNodeScanner<PK,​PK>
  • Field Summary

    Fields inherited from class io.datarouter.scanner.BaseScanner

    current
  • Constructor Summary

    Constructors 
    Constructor Description
    MysqlPrimaryKeyScanner​(MysqlNodeManager mysqlNodeManager, io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<PK,​D,​F> fieldInfo, java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, io.datarouter.storage.config.Config config, boolean caseInsensitive)  
  • Method Summary

    Modifier and Type Method Description
    protected PK getPrimaryKey​(PK pk)  
    protected java.util.List<PK> loadRanges​(java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, io.datarouter.storage.config.Config config)  

    Methods inherited from class io.datarouter.storage.op.scan.BaseNodeScanner

    advance

    Methods inherited from class io.datarouter.scanner.BaseScanner

    current

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.datarouter.scanner.Scanner

    advanceUntil, advanceWhile, allMatch, anyMatch, batch, close, collate, collate, collect, concatenate, count, deduplicate, deduplicate, distinct, each, exclude, findAny, findFirst, findLast, flush, forEach, hasAny, include, isEmpty, iterable, iterator, limit, link, list, listTo, map, mapToScanner, max, min, noneMatch, parallel, prefetch, reduce, retain, sample, skip, sorted, sorted, stream, take, toArray
  • Constructor Details

    • MysqlPrimaryKeyScanner

      public MysqlPrimaryKeyScanner​(MysqlNodeManager mysqlNodeManager, io.datarouter.storage.serialize.fieldcache.PhysicalDatabeanFieldInfo<PK,​D,​F> fieldInfo, java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, io.datarouter.storage.config.Config config, boolean caseInsensitive)
  • Method Details

    • loadRanges

      protected java.util.List<PK> loadRanges​(java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, io.datarouter.storage.config.Config config)
      Specified by:
      loadRanges in class io.datarouter.storage.op.scan.BaseNodeScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>
    • getPrimaryKey

      protected PK getPrimaryKey​(PK pk)
      Specified by:
      getPrimaryKey in class io.datarouter.storage.op.scan.BaseNodeScanner<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>