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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddiscard()longbooleanisValid()voidsetMaxRecords(long maxRecords) voidstoreRecord(byte[] data) voidstoreRecords(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
public void storeRecord(byte[] data) -
storeRecords
public void storeRecords(org.eclipse.rdf4j.sail.nativerdf.RecordCache otherCache) -
clear
public void clear() -
getRecords
-
isValid
public boolean isValid() -
discard
public void discard()
-