Class NoOpNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>

java.lang.Object
io.datarouter.storage.client.imp.noop.NoOpNode<PK,​D>
All Implemented Interfaces:
IndexedMapStorage<PK,​D>, IndexedSortedMapStorage<PK,​D>, IndexedMapStorageReader<PK,​D>, IndexedSortedMapStorageReader<PK,​D>, SortedMapStorageReader<PK,​D>, SortedMapStorage<PK,​D>, IndexedMapStorageWriter<PK,​D>, IndexedSortedMapStorageWriter<PK,​D>, SortedMapStorageWriter<PK,​D>, IndexedOps<PK,​D>, NodeOps<PK,​D>, IndexedStorage<PK,​D>, MapStorage<PK,​D>, IndexedStorageReader<PK,​D>, MapStorageReader<PK,​D>, SortedStorageReader<PK,​D>, SortedStorage<PK,​D>, IndexedStorageWriter<PK,​D>, MapStorageWriter<PK,​D>, SortedStorageWriter<PK,​D>, StorageWriter<PK,​D>
Direct Known Subclasses:
NoOpGroupQueueNode, NoOpQueueNode

public class NoOpNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​D extends io.datarouter.model.databean.Databean<PK,​D>>
extends Object
implements IndexedSortedMapStorage<PK,​D>
  • 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 List<PK> getKeys​(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 List<D> getMulti​(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>>
    • 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​(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>>
    • 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​(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>>
    • scanRangesKeys

      public io.datarouter.scanner.Scanner<PK> scanRangesKeys​(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>>
    • scanRanges

      public io.datarouter.scanner.Scanner<D> scanRanges​(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>>
    • 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 List<D> lookupMultiUnique​(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>>
    • 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​(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>>
    • 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>> List<IE> getMultiFromIndex​(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>> List<D> getMultiByIndex​(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>>
    • 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​(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>>
    • 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, 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, 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, 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>,​ N extends ManagedNode<PK,​ D,​ IK,​ IE,​ IF>> N registerManaged​(N 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 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>>