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 int
BLOCK_SIZE
-
Constructor Summary
Constructors Constructor Description InMemRecordCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
discard()
long
getRecordCount()
RecordIterator
getRecords()
boolean
isValid()
void
setMaxRecords(long maxRecords)
void
storeRecord(byte[] data)
void
storeRecords(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
-
-