Package org.nustaq.reallive.records
Class PatchingRecord
java.lang.Object
org.nustaq.reallive.records.RecordWrapper
org.nustaq.reallive.records.PatchingRecord
- All Implemented Interfaces:
Serializable,Record,EvalContext
Created by ruedi on 10.01.16.
overrides on write. Used in filter to patch old/new record from a diff. Only detects changes on top-level (not inside nested records)
- See Also:
-
Field Summary
Fields inherited from class org.nustaq.reallive.records.RecordWrapper
record -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.nustaq.reallive.records.RecordWrapper
getKey, getLastModified, getRecord, getSequence, internal_incSequence, internal_setLastModified, internal_updateLastModified, key, transformCopy, WrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nustaq.reallive.api.Record
_afterLoad, asDouble, asList, asLong, asMap, asSet, asString, deepCopy, deepMerge, defaultEquals, getArr, getAsList, getBool, getDouble, getFieldSet, getInt, getKeyVals, getLong, getRec, getSafeString, getString, getValue, haveRec, join, mget, mgetNum, mgetString, omit, putTransforming, reduced, stripOps, toJson, toPrettyString, validateForJsonability
-
Constructor Details
-
PatchingRecord
-
-
Method Details
-
isModified
public boolean isModified() -
getFields
- Specified by:
getFieldsin interfaceRecord- Overrides:
getFieldsin classRecordWrapper
-
shallowCopy
- Specified by:
shallowCopyin interfaceRecord- Overrides:
shallowCopyin classRecordWrapper- Returns:
- a shallow (!) copy of this record
-
get
- Specified by:
getin interfaceEvalContext- Overrides:
getin classRecordWrapper
-
internal_put
- Specified by:
internal_putin interfaceRecord- Overrides:
internal_putin classRecordWrapper
-
put
Description copied from interface:Recordputs a key value pair. type checking is applied to ensure data is json compatible. if value is null, the key is removed.- Specified by:
putin interfaceRecord- Overrides:
putin classRecordWrapper- Returns:
-
toString
- Overrides:
toStringin classRecordWrapper
-
hashCode
public int hashCode()- Overrides:
hashCodein classRecordWrapper
-
equals
- Overrides:
equalsin classRecordWrapper
-
reset
-
unwrapOrCopy
-
containsKey
- Specified by:
containsKeyin interfaceRecord- Overrides:
containsKeyin classRecordWrapper
-