Class PhysicalIndexedSortedMapStorageSanitizationAdapter<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>,​N extends IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>>

java.lang.Object
io.datarouter.storage.node.adapter.BaseAdapter<PK,​D,​F,​N>
io.datarouter.storage.node.adapter.sanitization.BaseSanitizationAdapter<PK,​D,​F,​N>
io.datarouter.storage.node.adapter.sanitization.PhysicalIndexedSortedMapStorageSanitizationAdapter<PK,​D,​F,​N>
All Implemented Interfaces:
PhysicalAdapterMixin<PK,​D,​F,​N>, Node<PK,​D,​F>, IndexedMapStorage<PK,​D>, IndexedMapStorage.IndexedMapStorageNode<PK,​D,​F>, IndexedMapStorage.PhysicalIndexedMapStorageNode<PK,​D,​F>, IndexedSortedMapStorage<PK,​D>, IndexedSortedMapStorage.IndexedSortedMapStorageNode<PK,​D,​F>, IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>, IndexedMapStorageReader<PK,​D>, IndexedMapStorageReader.IndexedMapStorageReaderNode<PK,​D,​F>, IndexedMapStorageReader.PhysicalIndexedMapStorageReaderNode<PK,​D,​F>, IndexedSortedMapStorageReader<PK,​D>, IndexedSortedMapStorageReader.IndexedSortedMapStorageReaderNode<PK,​D,​F>, IndexedSortedMapStorageReader.PhysicalIndexedSortedMapStorageReaderNode<PK,​D,​F>, SortedMapStorageReader<PK,​D>, SortedMapStorageReader.PhysicalSortedMapStorageReaderNode<PK,​D,​F>, SortedMapStorageReader.SortedMapStorageReaderNode<PK,​D,​F>, SortedMapStorage<PK,​D>, SortedMapStorage.PhysicalSortedMapStorageNode<PK,​D,​F>, SortedMapStorage.SortedMapStorageNode<PK,​D,​F>, IndexedMapStorageWriter<PK,​D>, IndexedMapStorageWriter.IndexedMapStorageWriterNode<PK,​D,​F>, IndexedMapStorageWriter.PhysicalIndexedMapStorageWriterNode<PK,​D,​F>, IndexedSortedMapStorageWriter<PK,​D>, IndexedSortedMapStorageWriter.IndexedSortedMapStorageWriterNode<PK,​D,​F>, IndexedSortedMapStorageWriter.PhysicalIndexedSortedMapStorageWriterNode<PK,​D,​F>, SortedMapStorageWriter<PK,​D>, SortedMapStorageWriter.PhysicalSortedMapStorageWriterNode<PK,​D,​F>, SortedMapStorageWriter.SortedMapStorageWriterNode<PK,​D,​F>, IndexedOps<PK,​D>, NodeOps<PK,​D>, IndexedStorage<PK,​D>, IndexedStorage.IndexedStorageNode<PK,​D,​F>, IndexedStorage.PhysicalIndexedStorageNode<PK,​D,​F>, MapStorage<PK,​D>, MapStorage.MapStorageNode<PK,​D,​F>, MapStorage.PhysicalMapStorageNode<PK,​D,​F>, IndexedStorageReader<PK,​D>, IndexedStorageReader.IndexedStorageReaderNode<PK,​D,​F>, IndexedStorageReader.PhysicalIndexedStorageReaderNode<PK,​D,​F>, MapStorageReader<PK,​D>, MapStorageReader.MapStorageReaderNode<PK,​D,​F>, MapStorageReader.PhysicalMapStorageReaderNode<PK,​D,​F>, SortedStorageReader<PK,​D>, SortedStorageReader.PhysicalSortedStorageReaderNode<PK,​D,​F>, SortedStorageReader.SortedStorageReaderNode<PK,​D,​F>, SortedStorage<PK,​D>, SortedStorage.PhysicalSortedStorageNode<PK,​D,​F>, SortedStorage.SortedStorageNode<PK,​D,​F>, IndexedStorageWriter<PK,​D>, IndexedStorageWriter.IndexedStorageWriterNode<PK,​D,​F>, IndexedStorageWriter.PhysicalIndexedStorageWriterNode<PK,​D,​F>, MapStorageWriter<PK,​D>, MapStorageWriter.MapStorageWriterNode<PK,​D,​F>, MapStorageWriter.PhysicalMapStorageWriterNode<PK,​D,​F>, SortedStorageWriter<PK,​D>, SortedStorageWriter.PhysicalSortedStorageWriterNode<PK,​D,​F>, SortedStorageWriter.SortedStorageWriterNode<PK,​D,​F>, StorageWriter<PK,​D>, StorageWriter.StorageWriterNode<PK,​D,​F>, PhysicalNode<PK,​D,​F>, java.lang.Comparable<Node<PK,​D,​F>>

public class PhysicalIndexedSortedMapStorageSanitizationAdapter<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>,​N extends IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>>
extends BaseSanitizationAdapter<PK,​D,​F,​N>
implements IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>, PhysicalAdapterMixin<PK,​D,​F,​N>
  • Constructor Details

  • Method Details

    • exists

      public boolean exists​(PK key, Config config)
      Specified by:
      exists in interface MapStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getKeys

      public java.util.List<PK> getKeys​(java.util.Collection<PK> keys, Config config)
      Specified by:
      getKeys in interface MapStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • get

      public D get​(PK key, Config config)
      Specified by:
      get in interface MapStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getMulti

      public java.util.List<D> getMulti​(java.util.Collection<PK> keys, Config config)
      Specified by:
      getMulti in interface MapStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • delete

      public void delete​(PK key, Config config)
      Specified by:
      delete in interface MapStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • deleteMulti

      public void deleteMulti​(java.util.Collection<PK> keys, Config config)
      Specified by:
      deleteMulti in interface MapStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • deleteAll

      public void deleteAll​(Config config)
      Specified by:
      deleteAll in interface MapStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • put

      public void put​(D databean, Config config)
      Specified by:
      put in interface StorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • putMulti

      public void putMulti​(java.util.Collection<D> databeans, Config config)
      Specified by:
      putMulti in interface StorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • lookupUnique

      public D lookupUnique​(io.datarouter.model.key.unique.UniqueKey<PK> uniqueKey, Config config)
      Specified by:
      lookupUnique in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • lookupMultiUnique

      public java.util.List<D> lookupMultiUnique​(java.util.Collection<? extends io.datarouter.model.key.unique.UniqueKey<PK>> uniqueKeys, Config config)
      Specified by:
      lookupMultiUnique in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getMultiFromIndex

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> java.util.List<IE> getMultiFromIndex​(java.util.Collection<IK> keys, Config config, IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo)
      Specified by:
      getMultiFromIndex in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getMultiByIndex

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> java.util.List<D> getMultiByIndex​(java.util.Collection<IK> keys, Config config, IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo)
      Specified by:
      getMultiByIndex in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • scanRangesIndex

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> io.datarouter.scanner.Scanner<IE> scanRangesIndex​(IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo, java.util.Collection<io.datarouter.util.tuple.Range<IK>> ranges, Config config)
      Specified by:
      scanRangesIndex in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • scanRangesByIndex

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> io.datarouter.scanner.Scanner<D> scanRangesByIndex​(IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo, java.util.Collection<io.datarouter.util.tuple.Range<IK>> ranges, Config config)
      Specified by:
      scanRangesByIndex in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • scanRangesIndexKeys

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> io.datarouter.scanner.Scanner<IK> scanRangesIndexKeys​(IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo, java.util.Collection<io.datarouter.util.tuple.Range<IK>> ranges, Config config)
      Specified by:
      scanRangesIndexKeys in interface IndexedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • registerManaged

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>,​ MN extends ManagedNode<PK,​ D,​ IK,​ IE,​ IF>> MN registerManaged​(MN managedNode)
      Specified by:
      registerManaged in interface IndexedOps<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getManagedNodes

      public java.util.List<ManagedNode<PK,​D,​?,​?,​?>> getManagedNodes()
      Specified by:
      getManagedNodes in interface IndexedOps<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • deleteUnique

      public void deleteUnique​(io.datarouter.model.key.unique.UniqueKey<PK> uniqueKey, Config config)
      Specified by:
      deleteUnique in interface IndexedStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • deleteMultiUnique

      public void deleteMultiUnique​(java.util.Collection<? extends io.datarouter.model.key.unique.UniqueKey<PK>> uniqueKeys, Config config)
      Specified by:
      deleteMultiUnique in interface IndexedStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • deleteByIndex

      public <IK extends io.datarouter.model.key.primary.PrimaryKey<IK>,​ IE extends io.datarouter.model.index.IndexEntry<IK,​ IE,​ PK,​ D>,​ IF extends io.datarouter.model.serialize.fielder.DatabeanFielder<IK,​ IE>> void deleteByIndex​(java.util.Collection<IK> keys, Config config, IndexEntryFieldInfo<IK,​IE,​IF> indexEntryFieldInfo)
      Specified by:
      deleteByIndex in interface IndexedStorageWriter<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • scanRanges

      public io.datarouter.scanner.Scanner<D> scanRanges​(java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config)
      Specified by:
      scanRanges in interface SortedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • scanRangesKeys

      public io.datarouter.scanner.Scanner<PK> scanRangesKeys​(java.util.Collection<io.datarouter.util.tuple.Range<PK>> ranges, Config config)
      Specified by:
      scanRangesKeys in interface SortedStorageReader<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
    • getFieldInfo

      public PhysicalDatabeanFieldInfo<PK,​D,​F> getFieldInfo()
      Specified by:
      getFieldInfo in interface Node<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>>
      Specified by:
      getFieldInfo in interface PhysicalAdapterMixin<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>,​N extends IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>>
      Specified by:
      getFieldInfo in interface PhysicalNode<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>>
      Overrides:
      getFieldInfo in class BaseAdapter<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>,​N extends IndexedSortedMapStorage.PhysicalIndexedSortedMapStorageNode<PK,​D,​F>>