Class OTransactionIndexChangesPerKey
java.lang.Object
com.orientechnologies.orient.core.tx.OTransactionIndexChangesPerKey
- All Implemented Interfaces:
OStorageTransactionIndexKeyChanges
public class OTransactionIndexChangesPerKey
extends Object
implements OStorageTransactionIndexKeyChanges
Collects the changes to an index for a certain key
- Author:
- Luca Garulli (l.garulli--at--orientechnologies.com) - initial contribution, Sergey Sitnikov - index key changes interpretation support
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines interpretations supported byinterpret(Interpretation).class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(OIdentifiable iValue, OTransactionIndexChanges.OPERATION iOperation) voidclear()createEntryInternal(OIdentifiable iValue, OTransactionIndexChanges.OPERATION iOperation) Only needed for old tests, will be removed soon.Only needed for old tests, will be removed soon.getKey()getOps()interpret(OTransactionIndexChangesPerKey.Interpretation interpretation) Interprets this key changes using the giveninterpretation.booleanisEmpty()voidsetIndex(OIndexInternal associatedIndex) intsize()toString()
-
Field Details
-
key
-
clientTrackOnly
public boolean clientTrackOnly
-
-
Constructor Details
-
OTransactionIndexChangesPerKey
-
-
Method Details
-
add
-
interpret
public Iterable<OStorageTransactionIndexChange> interpret(OTransactionIndexChangesPerKey.Interpretation interpretation) Interprets this key changes using the giveninterpretation.- Parameters:
interpretation- the interpretation to use.- Returns:
- the interpreted changes.
-
clear
public void clear() -
toString
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceOStorageTransactionIndexKeyChanges
-
size
public int size() -
getEntriesAsList
- Returns:
- a copy of the entries of this object
-
getEntriesForStorage
- Returns:
- a copy of the entries of this object
-
getEntriesInternal
Only needed for old tests, will be removed soon. PLEASE DON'T USE IT- Returns:
- the entries (not a copy, the exact list)
-
createEntryInternal
protected OTransactionIndexChangesPerKey.OTransactionIndexEntry createEntryInternal(OIdentifiable iValue, OTransactionIndexChanges.OPERATION iOperation) Only needed for old tests, will be removed soon. PLEASE DON'T USE IT- Parameters:
iValue-iOperation-- Returns:
-
setIndex
-
getOps
- Specified by:
getOpsin interfaceOStorageTransactionIndexKeyChanges
-
getKey
- Specified by:
getKeyin interfaceOStorageTransactionIndexKeyChanges
-