Class RangeIndexWrapper

java.lang.Object
org.apache.jena.dboe.index.RangeIndexWrapper
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
Direct Known Subclasses:
RangeIndexLogger

public class RangeIndexWrapper extends Object implements RangeIndex
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Perform checks on this index
    void
    Clear the index
    void
    Close the index - can not be used again through this object
    boolean
    contains(org.apache.jena.dboe.base.record.Record record)
    Return whether the index contains the record or not.
    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)
    org.apache.jena.dboe.base.record.RecordFactory
    Get the Record factory associated with this index
     
    boolean
    insert(org.apache.jena.dboe.base.record.Record record)
    Insert a record - return true if an insertion was actually needed
    boolean
    Answer whether the index is empty or not.
    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
    <X> Iterator<X>
    iterator(org.apache.jena.dboe.base.record.Record minRec, org.apache.jena.dboe.base.record.Record maxRec, org.apache.jena.dboe.base.record.RecordMapper<X> mapper)
     
    org.apache.jena.dboe.base.record.Record
    Return the record containing the greatest key - may or may not have the associated value
    org.apache.jena.dboe.base.record.Record
    Return the record containing the least key - may or may not have the associated value
    long
    Return size if known else return -1 : does not count the persistent storage
    void
     

    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

    • RangeIndexWrapper

      public RangeIndexWrapper(RangeIndex rIdx)
  • Method Details

    • 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
    • contains

      public boolean contains(org.apache.jena.dboe.base.record.Record record)
      Description copied from interface: Index
      Return whether the index contains the record or not.
      Specified by:
      contains in interface Index
    • minKey

      public org.apache.jena.dboe.base.record.Record minKey()
      Description copied from interface: RangeIndex
      Return the record containing the least key - may or may not have the associated value
      Specified by:
      minKey in interface RangeIndex
    • maxKey

      public org.apache.jena.dboe.base.record.Record maxKey()
      Description copied from interface: RangeIndex
      Return the record containing the greatest key - may or may not have the associated value
      Specified by:
      maxKey in interface RangeIndex
    • 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
    • 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
    • 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>
    • 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
    • iterator

      public <X> Iterator<X> iterator(org.apache.jena.dboe.base.record.Record minRec, org.apache.jena.dboe.base.record.Record maxRec, org.apache.jena.dboe.base.record.RecordMapper<X> mapper)
      Specified by:
      iterator in interface RangeIndex
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Index
      Answer whether the index is empty or not. May return false for unknown or meaningless
      Specified by:
      isEmpty in interface Index
    • clear

      public void clear()
      Description copied from interface: Index
      Clear the index
      Specified by:
      clear in interface Index
    • sync

      public void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
    • close

      public void close()
      Description copied from interface: Index
      Close the index - can not be used again through this object
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface Index
    • getWrapped

      public RangeIndex getWrapped()
    • getRecordFactory

      public org.apache.jena.dboe.base.record.RecordFactory getRecordFactory()
      Description copied from interface: Index
      Get the Record factory associated with this index
      Specified by:
      getRecordFactory in interface Index
    • check

      public void check()
      Description copied from interface: Index
      Perform checks on this index
      Specified by:
      check in interface Index
    • size

      public long size()
      Description copied from interface: Index
      Return size if known else return -1 : does not count the persistent storage
      Specified by:
      size in interface Index