| Modifier and Type | Method and Description |
|---|---|
default Record |
Record.copied() |
Record |
RecordStorage.get(String key) |
default Record |
Record.getRec(String field) |
default Record |
ChangeMessage.getRecord() |
Record |
Record.key(String key)
take care, kind of dangerous
|
Record |
Record.put(String field,
Object value) |
default Record |
Record.rec(String field)
creates and sets an empty record in case
|
default Record |
Record.reduced(String[] reducedFields) |
Record |
RecordStorage.remove(String key) |
| Modifier and Type | Method and Description |
|---|---|
default org.nustaq.kontraktor.IPromise<Record> |
RealLiveTable.find(RLPredicate<Record> condition) |
org.nustaq.kontraktor.IPromise<Record> |
SafeRealLiveTable.get(String key) |
RLPredicate<Record> |
Subscriber.getFilter() |
default org.nustaq.kontraktor.IPromise<List<Record>> |
RealLiveTable.queryList(RLPredicate<Record> condition) |
default List<Record> |
Record.recarr(String field)
creates and sets an empty list in case
|
java.util.stream.Stream<Record> |
RecordStorage.stream() |
org.nustaq.kontraktor.IPromise<Record> |
SafeRealLiveTable.take(int senderId,
String key) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise<Boolean> |
SafeRealLiveTable.addRecord(int sederId,
Record rec) |
default org.nustaq.kontraktor.IPromise<Boolean> |
SafeRealLiveTable.addRecord(Record rec) |
default void |
Record.merge(Record record)
copy all fields from given record to this
|
void |
SafeRealLiveTable.mergeRecord(int senderId,
Record rec) |
default void |
SafeRealLiveTable.mergeRecord(Record rec) |
RecordStorage |
RecordStorage.put(String key,
Record value) |
void |
SafeRealLiveTable.setRecord(int senderId,
Record rec) |
default void |
SafeRealLiveTable.setRecord(Record rec) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise |
RealLiveTable.atomic(String key,
RLFunction<Record,Object> action)
apply the function to the record with given key and return the result inside a promise
changes to the record inside the function are applied to the real record and a change message
is generated.
|
void |
RealLiveTable.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action)
mass update.
|
void |
RealLiveTable.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action)
mass update.
|
Subscriber |
Subscriber.filter(RLPredicate<Record> filter) |
default org.nustaq.kontraktor.IPromise<Record> |
RealLiveTable.find(RLPredicate<Record> condition) |
default void |
RealLiveStreamActor.forEach(RLPredicate<Record> predicate,
org.nustaq.kontraktor.Callback<Record> cb) |
default void |
RealLiveStreamActor.forEach(RLPredicate<Record> predicate,
org.nustaq.kontraktor.Callback<Record> cb) |
<T> void |
RealLiveStreamActor.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
default Subscriber |
ChangeStream.listen(RLNoQueryPredicate<Record> filter,
ChangeReceiver rec) |
default <R> void |
RealLiveStreamActor.map(RLPredicate<Record> predicate,
RLFunction<Record,R> mapFun,
org.nustaq.kontraktor.Callback<R> cb) |
default <R> void |
RealLiveStreamActor.map(RLPredicate<Record> predicate,
RLFunction<Record,R> mapFun,
org.nustaq.kontraktor.Callback<R> cb) |
default void |
RealLiveStreamActor.query(String query,
org.nustaq.kontraktor.Callback<Record> cb) |
void |
SafeRealLiveStreamActor.query(String query,
org.nustaq.kontraktor.Callback<Record> cb) |
default org.nustaq.kontraktor.IPromise<List<Record>> |
RealLiveTable.queryList(RLPredicate<Record> condition) |
default Subscriber |
ChangeStream.subscribeOn(RLPredicate<Record> filter,
ChangeReceiver receiver) |
| Constructor and Description |
|---|
Subscriber(RLPredicate<Record> filter,
ChangeReceiver receiver) |
| Modifier and Type | Method and Description |
|---|---|
Record |
SubscribedSet.get(String key) |
| Modifier and Type | Method and Description |
|---|---|
Map<Object,Record> |
SubscribedSet.cloneMap() |
Map<Object,Record> |
SubscribedSet.getMap()
should be used only if this is a HeapRecordStorage, accessed single threaded or this has been initialized using a concurrent map
|
| Modifier and Type | Method and Description |
|---|---|
void |
SubscribedSet.subscribe(RLPredicate<Record> filter) |
| Modifier and Type | Method and Description |
|---|---|
Record |
RLUtil.buildRecord(Record res,
Object[] keyVals) |
Record |
RLUtil.record(String key,
Object... keyVals) |
static Record |
StorageDriver.unwrap(Record r) |
| Modifier and Type | Method and Description |
|---|---|
void |
StorageDriver.add(int senderId,
Record rec) |
void |
StorageDriver.addOrUpdateRec(int senderId,
Record rec) |
Record |
RLUtil.buildRecord(Record res,
Object[] keyVals) |
boolean |
RLUtil.isEqual(Record rlRec,
Record copy) |
void |
StorageDriver.put(int senderId,
Record rec) |
void |
FilterSpore.remote(Record input) |
void |
MapSpore.remote(Record input) |
static Record |
StorageDriver.unwrap(Record r) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise |
StorageDriver.atomicQuery(String key,
RLFunction<Record,Object> action)
apply the function to the record with given key and return the result inside a promise
changes to the record inside the function are applied to the real record and a change message
is generated.
|
void |
StorageDriver.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
void |
StorageDriver.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
| Constructor and Description |
|---|
FilterSpore(RLPredicate<Record> filter) |
MapSpore(RLPredicate<Record> filter,
RLFunction<Record,V> mapFun) |
MapSpore(RLPredicate<Record> filter,
RLFunction<Record,V> mapFun) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise<Record> |
RealLiveTableActor.get(String key) |
org.nustaq.kontraktor.IPromise<Record> |
ShardedTable.get(String key) |
org.nustaq.kontraktor.IPromise<Record> |
RealLiveTableActor.take(int senderId,
String key) |
org.nustaq.kontraktor.IPromise<Record> |
ShardedTable.take(int senderId,
String key) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise<Boolean> |
RealLiveTableActor.addRecord(int senderId,
Record rec) |
org.nustaq.kontraktor.IPromise<Boolean> |
ShardedTable.addRecord(int senderId,
Record rec) |
void |
RealLiveTableActor.mergeRecord(int senderId,
Record rec) |
void |
ShardedTable.mergeRecord(int senderId,
Record rec) |
void |
RealLiveTableActor.setRecord(int senderId,
Record rec) |
void |
ShardedTable.setRecord(int senderId,
Record rec) |
| Modifier and Type | Method and Description |
|---|---|
org.nustaq.kontraktor.IPromise |
RealLiveTableActor.atomic(String key,
RLFunction<Record,Object> action) |
org.nustaq.kontraktor.IPromise |
ShardedTable.atomic(String key,
RLFunction<Record,Object> action) |
void |
RealLiveTableActor.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
void |
RealLiveTableActor.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
void |
ShardedTable.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
void |
ShardedTable.atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action) |
<T> void |
RealLiveTableActor.forEachDirect(org.nustaq.kontraktor.Spore<Record,T> spore) |
<T> void |
RealLiveTableActor.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
<T> void |
ShardedTable.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
| Modifier and Type | Method and Description |
|---|---|
Record |
OffHeapRecordStorage.get(String key) |
Record |
CachedOffHeapStorage.get(String key) |
Record |
HeapRecordStorage.get(String key) |
Record |
OffHeapRecordStorage.remove(String key) |
Record |
CachedOffHeapStorage.remove(String key) |
Record |
HeapRecordStorage.remove(String key) |
| Modifier and Type | Method and Description |
|---|---|
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> |
OffHeapRecordStorage.createMemMap(int sizeMB,
int estimatedNumRecords,
int keyLen) |
protected org.nustaq.offheap.FSTSerializedOffheapMap<String,Record> |
OffHeapRecordStorage.createPersistentMap(String tableFile,
int sizeMB,
int estimatedNumRecords,
int keyLen) |
Map<Object,Record> |
HeapRecordStorage.getMap() |
java.util.stream.Stream<Record> |
OffHeapRecordStorage.stream() |
java.util.stream.Stream<Record> |
CachedOffHeapStorage.stream() |
java.util.stream.Stream<Record> |
HeapRecordStorage.stream() |
| Modifier and Type | Method and Description |
|---|---|
RecordStorage |
OffHeapRecordStorage._put(String key,
Record value) |
RecordStorage |
HeapRecordStorage._put(String key,
Record value) |
RecordStorage |
OffHeapRecordStorage.put(String key,
Record value) |
RecordStorage |
CachedOffHeapStorage.put(String key,
Record value) |
RecordStorage |
HeapRecordStorage.put(String key,
Record value) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
OffHeapRecordStorage.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
<T> void |
CachedOffHeapStorage.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
<T> void |
HeapRecordStorage.forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
| Constructor and Description |
|---|
HeapRecordStorage(Map<Object,Record> map) |
| Modifier and Type | Method and Description |
|---|---|
Record |
UpdateMessage.getNewRecord() |
Record |
UpdateMessage.getOldRecord() |
Record |
RemoveMessage.getRecord() |
Record |
AddMessage.getRecord() |
Record |
UpdateMessage.getRecord() |
Record |
PutMessage.getRecord() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ChangeUtils.copy(Record from,
Record to,
String... fields) |
static Diff |
ChangeUtils.copyAndDiff(Record from,
Record to)
copy different (equals) fields and return resulting list of changed fields + old values
|
static Diff |
ChangeUtils.copyAndDiff(Record from,
Record to,
String[] fields) |
static Diff |
ChangeUtils.copyAndDiff(Record from,
Record to,
String[] fields,
HashSet<String> forced) |
static <K> Diff |
ChangeUtils.diff(Record record,
Record prevRecord) |
static Diff |
ChangeUtils.mayCopyAndDiff(Record from,
Record to,
String[] fields,
boolean copy,
HashSet<String> forced) |
| Constructor and Description |
|---|
AddMessage(int senderId,
boolean updateIfExisting,
Record record) |
AddMessage(int senderId,
Record record) |
PutMessage(int senderId,
Record record) |
RemoveMessage(int senderId,
Record rec) |
UpdateMessage(int senderId,
Diff diff,
Record newRecord,
Set<String> forcedUpdateFields) |
UpdateMessage(int senderId,
Diff diff,
Record newRecord,
Set<String> forcedUpdateFields,
boolean addIfNotExists) |
| Modifier and Type | Class and Description |
|---|---|
class |
MapRecord
Created by ruedi on 04.08.2015.
|
class |
PatchingRecord
Created by ruedi on 10.01.16.
|
class |
RecordWrapper
Created by ruedi on 22/08/15.
|
| Modifier and Type | Field and Description |
|---|---|
protected Record |
RecordWrapper.record |
| Modifier and Type | Method and Description |
|---|---|
Record |
RecordWrapper.getRecord() |
Record |
RecordWrapper.key(String key) |
Record |
MapRecord.key(String key) |
Record |
RecordWrapper.put(String field,
Object value) |
Record |
PatchingRecord.put(String field,
Object value) |
Record |
PatchingRecord.unwrapOrCopy() |
| Modifier and Type | Method and Description |
|---|---|
void |
PatchingRecord.reset(Record input) |
static <T> RecordWrapper |
RecordWrapper.Wrap(Record rec) |
| Constructor and Description |
|---|
PatchingRecord(Record record) |
RecordWrapper(Record record) |
Copyright © 2019. All rights reserved.