Class ObjectFileLogger

java.lang.Object
org.apache.jena.tdb1.base.objectfile.ObjectFileLogger
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, ObjectFile

public class ObjectFileLogger extends Object implements ObjectFile
  • Constructor Details

  • Method Details

    • write

      public long write(ByteBuffer buffer)
      Description copied from interface: ObjectFile
      Write out the buffer - return the accessor number
      Specified by:
      write in interface ObjectFile
    • reposition

      public void reposition(long id)
      Description copied from interface: ObjectFile
      Reset the "append" point; may only be moved earlier. The new position must correspond to a position returned by ObjectFile.write(ByteBuffer).
      Specified by:
      reposition in interface ObjectFile
    • read

      public ByteBuffer read(long id)
      Description copied from interface: ObjectFile
      Read a buffer at the accessor number.
      Specified by:
      read in interface ObjectFile
    • all

      public Iterator<org.apache.jena.atlas.lib.Pair<Long,ByteBuffer>> all()
      Description copied from interface: ObjectFile
      All the contents as ByteBuffers - debugging aid
      Specified by:
      all in interface ObjectFile
    • truncate

      public void truncate(long size)
      Description copied from interface: ObjectFile
      Truncate the file
      Specified by:
      truncate in interface ObjectFile
    • sync

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

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

      public String getLabel()
      Description copied from interface: ObjectFile
      A label to identify this ObjectFile
      Specified by:
      getLabel in interface ObjectFile
    • length

      public long length()
      Description copied from interface: ObjectFile
      Length, in units used by read/write for ids
      Specified by:
      length in interface ObjectFile
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: ObjectFile
      Any objects in this file?
      Specified by:
      isEmpty in interface ObjectFile