Class RangeIndexLogger

java.lang.Object
org.apache.jena.dboe.index.RangeIndexWrapper
org.apache.jena.dboe.index.RangeIndexLogger
All Implemented Interfaces:
Iterable<org.apache.jena.dboe.base.record.Record>, org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, Index, RangeIndex

public final class RangeIndexLogger extends RangeIndexWrapper
  • Constructor Summary

    Constructors
    Constructor
    Description
    RangeIndexLogger(RangeIndex rIdx, org.slf4j.Logger log)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    delete(org.apache.jena.dboe.base.record.Record record)
    Delete a record - Return true if a record was actually removed
    org.apache.jena.dboe.base.record.Record
    find(org.apache.jena.dboe.base.record.Record record)
    Find one record - and return the record actually in the index (may have a value part)
    boolean
    insert(org.apache.jena.dboe.base.record.Record record)
    Insert a record - return true if an insertion was actually needed
    Iterator<org.apache.jena.dboe.base.record.Record>
    Iterate over the whole index
    Iterator<org.apache.jena.dboe.base.record.Record>
    iterator(org.apache.jena.dboe.base.record.Record minRec, org.apache.jena.dboe.base.record.Record maxRec)
    Return records between min (inclusive) and max (exclusive), based on the record keys

    Methods inherited from class org.apache.jena.dboe.index.RangeIndexWrapper

    check, clear, close, contains, getRecordFactory, getWrapped, isEmpty, iterator, maxKey, minKey, size, sync

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • RangeIndexLogger

      public RangeIndexLogger(RangeIndex rIdx, org.slf4j.Logger log)
  • Method Details

    • insert

      public boolean insert(org.apache.jena.dboe.base.record.Record record)
      Description copied from interface: Index
      Insert a record - return true if an insertion was actually needed
      Specified by:
      insert in interface Index
      Overrides:
      insert in class RangeIndexWrapper
    • delete

      public boolean delete(org.apache.jena.dboe.base.record.Record record)
      Description copied from interface: Index
      Delete a record - Return true if a record was actually removed
      Specified by:
      delete in interface Index
      Overrides:
      delete in class RangeIndexWrapper
    • find

      public org.apache.jena.dboe.base.record.Record find(org.apache.jena.dboe.base.record.Record record)
      Description copied from interface: Index
      Find one record - and return the record actually in the index (may have a value part)
      Specified by:
      find in interface Index
      Overrides:
      find in class RangeIndexWrapper
    • iterator

      public Iterator<org.apache.jena.dboe.base.record.Record> iterator()
      Description copied from interface: Index
      Iterate over the whole index
      Specified by:
      iterator in interface Index
      Specified by:
      iterator in interface Iterable<org.apache.jena.dboe.base.record.Record>
      Overrides:
      iterator in class RangeIndexWrapper
    • iterator

      public Iterator<org.apache.jena.dboe.base.record.Record> iterator(org.apache.jena.dboe.base.record.Record minRec, org.apache.jena.dboe.base.record.Record maxRec)
      Description copied from interface: RangeIndex
      Return records between min (inclusive) and max (exclusive), based on the record keys
      Specified by:
      iterator in interface RangeIndex
      Overrides:
      iterator in class RangeIndexWrapper