Class IndexLogger

  • All Implemented Interfaces:
    java.lang.Iterable<Record>, org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, Index

    public final class IndexLogger
    extends IndexWrapper
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean delete​(Record record)
      Delete a record - Return true if a record was actually removed
      Record find​(Record record)
      Find one record - and return the record actually in the index (may have a value part)
      boolean insert​(Record record)
      Insert a record - return true if an insertion was actually needed
      java.util.Iterator<Record> iterator()
      Iterate over the whole index
      • 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 Detail

      • IndexLogger

        public IndexLogger​(RangeIndex rIdx,
                           org.slf4j.Logger log)
    • Method Detail

      • insert

        public boolean insert​(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 IndexWrapper
      • delete

        public boolean delete​(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 IndexWrapper
      • find

        public Record find​(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 IndexWrapper
      • iterator

        public java.util.Iterator<Record> iterator()
        Description copied from interface: Index
        Iterate over the whole index
        Specified by:
        iterator in interface Index
        Specified by:
        iterator in interface java.lang.Iterable<Record>
        Overrides:
        iterator in class IndexWrapper