|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.lucene.versioned.NativeVersionedMap
@ThreadSafe public class NativeVersionedMap
An implementation of VersionedMap
based on trove.
Constructor Summary | |
---|---|
NativeVersionedMap()
|
|
NativeVersionedMap(int concurrencyLevel)
|
Method Summary | |
---|---|
boolean |
beforeVersion(int key,
int versionToCheck)
Returns true if the versionToCheck is smaller than the current version associated with the key. |
void |
clear()
Clears the map. |
void |
putVersion(int key,
int version)
Puts (and replaces if it exists) the current key with the provided version. |
void |
putVersionIfAbsent(int key,
int version)
Puts the version with the key only if it is absent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeVersionedMap()
public NativeVersionedMap(int concurrencyLevel)
Method Detail |
---|
public boolean beforeVersion(int key, int versionToCheck)
VersionedMap
beforeVersion
in interface VersionedMap
public void putVersion(int key, int version)
VersionedMap
putVersion
in interface VersionedMap
public void putVersionIfAbsent(int key, int version)
VersionedMap
putVersionIfAbsent
in interface VersionedMap
public void clear()
VersionedMap
clear
in interface VersionedMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |