Package org.eclipse.rdf4j.sail.nativerdf
Class InMemRecordCache
- java.lang.Object
-
- org.eclipse.rdf4j.sail.nativerdf.InMemRecordCache
-
public class InMemRecordCache extends Object
An simplified implementation of the RecordCache that keeps everything in memory.
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_SIZE
-
Constructor Summary
Constructors Constructor Description InMemRecordCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddiscard()longgetRecordCount()RecordIteratorgetRecords()booleanisValid()voidsetMaxRecords(long maxRecords)voidstoreRecord(byte[] data)voidstoreRecords(org.eclipse.rdf4j.sail.nativerdf.RecordCache otherCache)
-
-
-
Field Detail
-
BLOCK_SIZE
public static final int BLOCK_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMaxRecords
public void setMaxRecords(long maxRecords)
-
getRecordCount
public long getRecordCount()
-
storeRecord
public void storeRecord(byte[] data) throws IOException- Throws:
IOException
-
storeRecords
public void storeRecords(org.eclipse.rdf4j.sail.nativerdf.RecordCache otherCache) throws IOException- Throws:
IOException
-
clear
public void clear() throws IOException- Throws:
IOException
-
getRecords
public RecordIterator getRecords() throws IOException
- Throws:
IOException
-
isValid
public boolean isValid()
-
discard
public void discard() throws IOException- Throws:
IOException
-
-