java.lang.Object
org.apache.jena.tdb1.base.objectfile.ObjectFileStorage
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,ObjectFile
Variable length ByteBuffer file on disk with
buffering for delayed writes.
-
Field Summary
FieldsFields inherited from interface org.apache.jena.tdb1.base.objectfile.ObjectFile
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.apache.jena.atlas.lib.Pair<Long,ByteBuffer>> all()All the contents as ByteBuffers - debugging aidvoidclose()getLabel()A label to identify this ObjectFilebooleanisEmpty()Any objects in this file?longlength()Length, in units used by read/write for idsread(long loc) Read a buffer at the accessor number.voidreposition(long posn) Reset the "append" point; may only be moved earlier.voidsync()toString()voidtruncate(long size) Truncate the filelongwrite(ByteBuffer bb) Write out the buffer - return the accessor number
-
Field Details
-
logging
public static boolean logging
-
-
Constructor Details
-
ObjectFileStorage
-
ObjectFileStorage
-
-
Method Details
-
write
Description copied from interface:ObjectFileWrite out the buffer - return the accessor number- Specified by:
writein interfaceObjectFile
-
reposition
public void reposition(long posn) Description copied from interface:ObjectFileReset the "append" point; may only be moved earlier. The new position must correspond to a position returned byObjectFile.write(ByteBuffer).- Specified by:
repositionin interfaceObjectFile
-
truncate
public void truncate(long size) Description copied from interface:ObjectFileTruncate the file- Specified by:
truncatein interfaceObjectFile
-
read
Description copied from interface:ObjectFileRead a buffer at the accessor number.- Specified by:
readin interfaceObjectFile
-
length
public long length()Description copied from interface:ObjectFileLength, in units used by read/write for ids- Specified by:
lengthin interfaceObjectFile
-
isEmpty
public boolean isEmpty()Description copied from interface:ObjectFileAny objects in this file?- Specified by:
isEmptyin interfaceObjectFile
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
getLabel
Description copied from interface:ObjectFileA label to identify this ObjectFile- Specified by:
getLabelin interfaceObjectFile
-
toString
-
all
Description copied from interface:ObjectFileAll the contents as ByteBuffers - debugging aid- Specified by:
allin interfaceObjectFile
-