Package org.eclipse.rdf4j.sail.nativerdf
Class InMemRecordCache
java.lang.Object
org.eclipse.rdf4j.sail.nativerdf.InMemRecordCache
An simplified implementation of the RecordCache that keeps everything in memory.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
discard()
long
boolean
isValid()
void
setMaxRecords
(long maxRecords) void
storeRecord
(byte[] data) void
storeRecords
(org.eclipse.rdf4j.sail.nativerdf.RecordCache otherCache)
-
Field Details
-
BLOCK_SIZE
static final int BLOCK_SIZE- See Also:
-
-
Constructor Details
-
InMemRecordCache
public InMemRecordCache()
-
-
Method Details
-
setMaxRecords
public void setMaxRecords(long maxRecords) -
getRecordCount
public long getRecordCount() -
storeRecord
- Throws:
IOException
-
storeRecords
public void storeRecords(org.eclipse.rdf4j.sail.nativerdf.RecordCache otherCache) throws IOException - Throws:
IOException
-
clear
- Throws:
IOException
-
getRecords
- Throws:
IOException
-
isValid
public boolean isValid() -
discard
- Throws:
IOException
-