public class StoreOnHeap implements Store
Store which does not use serialization, but puts everything into on-heap Map.
Modifier and Type | Class and Description |
---|---|
static class |
StoreOnHeap.Companion
Represents null record,
records map does not allow nulls |
ConcurrencyAware.DefaultImpls
Modifier and Type | Field and Description |
---|---|
static StoreOnHeap.Companion |
Companion
Represents null record,
records map does not allow nulls |
Constructor and Description |
---|
StoreOnHeap(boolean isThreadSafe)
Store which does not use serialization, but puts everything into on-heap Map.
|
StoreOnHeap()
Store which does not use serialization, but puts everything into on-heap Map.
|
Modifier and Type | Method and Description |
---|---|
void |
checkThreadSafe()
checks all subcomponents, if this component is really thread safe, and throws an exception if not thread safe
|
void |
close() |
void |
commit() |
void |
compact() |
<R> boolean |
compareAndSwap(long recid,
R expectedOldRecord,
R newRecord,
Serializer<R> serializer) |
<R> void |
delete(long recid,
Serializer<R> serializer) |
boolean |
fileLoad() |
<R> R |
get(long recid,
Serializer<R> serializer) |
java.lang.Iterable<java.lang.String> |
getAllFiles() |
LongIterator |
getAllRecids() |
boolean |
isClosed() |
boolean |
isReadOnly() |
boolean |
isThreadSafe()
returns true if this is configured to be thread safe
|
long |
preallocate() |
<R> long |
put(R record,
Serializer<R> serializer) |
<R> void |
update(long recid,
R record,
Serializer<R> serializer) |
void |
verify() |
close, commit, compact, compareAndSwap, delete, fileLoad, isClosed, isReadOnly, preallocate, put, update, verify
get, getAllFiles, getAllRecids
verify
checkThreadSafe, isThreadSafe
public static StoreOnHeap.Companion Companion
Represents null record, records
map does not allow nulls
public StoreOnHeap(boolean isThreadSafe)
Store which does not use serialization, but puts everything into on-heap Map.
isThreadSafe
- returns true if this is configured to be thread safepublic StoreOnHeap()
Store which does not use serialization, but puts everything into on-heap Map.
public long preallocate()
public <R> long put(R record, Serializer<R> serializer)
public <R> void update(long recid, R record, Serializer<R> serializer)
public <R> boolean compareAndSwap(long recid, R expectedOldRecord, R newRecord, Serializer<R> serializer)
public <R> void delete(long recid, Serializer<R> serializer)
public void commit()
public void compact()
public void close()
public boolean isClosed()
public <R> R get(long recid, Serializer<R> serializer)
public LongIterator getAllRecids()
public void verify()
public boolean isReadOnly()
public boolean fileLoad()
public java.lang.Iterable<java.lang.String> getAllFiles()
public boolean isThreadSafe()
returns true if this is configured to be thread safe
public void checkThreadSafe()
checks all subcomponents, if this component is really thread safe, and throws an exception if not thread safe