Package com.arcadedb.database
Class TransactionIndexContext
- java.lang.Object
-
- com.arcadedb.database.TransactionIndexContext
-
public class TransactionIndexContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransactionIndexContext.ComparableKey
static class
TransactionIndexContext.IndexKey
-
Constructor Summary
Constructors Constructor Description TransactionIndexContext(DatabaseInternal database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilesToLock(Set<Integer> modifiedFiles)
void
addIndexKeyLock(IndexInternal index, boolean addOperation, Object[] keysValues, RID rid)
void
commit()
TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>>
getIndexKeys(String indexName)
int
getTotalEntries()
int
getTotalEntriesByIndex(String indexName)
boolean
isEmpty()
void
removeIndex(String indexName)
void
reset()
void
setKeys(Map<String,TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>>> keysTx)
Map<String,TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>>>
toMap()
-
-
-
Constructor Detail
-
TransactionIndexContext
public TransactionIndexContext(DatabaseInternal database)
-
-
Method Detail
-
removeIndex
public void removeIndex(String indexName)
-
getTotalEntries
public int getTotalEntries()
-
getTotalEntriesByIndex
public int getTotalEntriesByIndex(String indexName)
-
commit
public void commit()
-
toMap
public Map<String,TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>>> toMap()
-
setKeys
public void setKeys(Map<String,TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>>> keysTx)
-
isEmpty
public boolean isEmpty()
-
addIndexKeyLock
public void addIndexKeyLock(IndexInternal index, boolean addOperation, Object[] keysValues, RID rid)
-
reset
public void reset()
-
getIndexKeys
public TreeMap<TransactionIndexContext.ComparableKey,Map<TransactionIndexContext.IndexKey,TransactionIndexContext.IndexKey>> getIndexKeys(String indexName)
-
-