public final class MapMemory extends java.lang.Object implements Memory.Admin, java.io.Serializable
Memory.Admin, Memory.Exceptions| Constructor and Description |
|---|
MapMemory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapReduceMemoryKey(MapReduce mapReduce) |
void |
addVertexProgramMemoryComputeKeys(VertexProgram<?> vertexProgram) |
boolean |
and(java.lang.String key,
boolean bool)
Logically AND the provided boolean value with the boolean value currently stored at the key.
|
<R> R |
get(java.lang.String key)
Get the value associated with the provided key.
|
int |
getIteration()
Get the current iteration number.
|
long |
getRuntime()
Get the amount of milliseconds the
GraphComputer has been executing thus far. |
long |
incr(java.lang.String key,
long delta)
Add the provided delta value to the long value currently stored at the key.
|
void |
incrIteration() |
java.util.Set<java.lang.String> |
keys()
The set of keys currently associated with this memory.
|
boolean |
or(java.lang.String key,
boolean bool)
Logically OR the provided boolean value with the boolean value currently stored at the key.
|
void |
set(java.lang.String key,
java.lang.Object value)
Set the value of the provided key.
|
void |
setIteration(int iteration) |
void |
setRuntime(long runtime) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasImmutableasMap, exists, isInitialIterationpublic void addVertexProgramMemoryComputeKeys(VertexProgram<?> vertexProgram)
public void addMapReduceMemoryKey(MapReduce mapReduce)
public java.util.Set<java.lang.String> keys()
Memorypublic <R> R get(java.lang.String key)
throws java.lang.IllegalArgumentException
Memorypublic void set(java.lang.String key,
java.lang.Object value)
MemoryVertexProgram.
If this is called during execute(), there is no guarantee as to the ultimately stored value as call order is indeterminate.public int getIteration()
MemorygetIteration in interface Memorypublic long getRuntime()
MemoryGraphComputer has been executing thus far.getRuntime in interface Memorypublic long incr(java.lang.String key,
long delta)
Memorypublic boolean and(java.lang.String key,
boolean bool)
Memorypublic boolean or(java.lang.String key,
boolean bool)
Memorypublic java.lang.String toString()
toString in class java.lang.Objectpublic void incrIteration()
incrIteration in interface Memory.Adminpublic void setIteration(int iteration)
setIteration in interface Memory.Adminpublic void setRuntime(long runtime)
setRuntime in interface Memory.AdminCopyright © 2013-2015 TinkerPop. All Rights Reserved.