Memory.Admin, Memory.Exceptions| Constructor and Description |
|---|
GiraphMemory() |
GiraphMemory(GiraphWorkerContext worker,
VertexProgram<?> vertexProgram) |
| Modifier and Type | Method and Description |
|---|---|
void |
and(String key,
boolean bool)
Logically AND the provided boolean value with the boolean value currently stored at the key.
|
void |
compute() |
boolean |
exists(String key)
Whether the key exists in the memory.
|
<R> R |
get(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. |
void |
incr(String key,
long delta)
Add the provided delta value to the long value currently stored at the key.
|
void |
initialize() |
Set<String> |
keys()
The set of keys currently associated with this memory.
|
void |
or(String key,
boolean bool)
Logically OR the provided boolean value with the boolean value currently stored at the key.
|
void |
readFields(DataInput input) |
void |
set(String key,
Object value)
Set the value of the provided key.
|
String |
toString() |
void |
write(DataOutput output) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasMap, isInitialIterationpublic GiraphMemory()
public GiraphMemory(GiraphWorkerContext worker, VertexProgram<?> vertexProgram)
public void initialize()
public void compute()
public int getIteration()
MemorygetIteration in interface Memorypublic long getRuntime()
MemoryGraphComputer has been executing thus far.getRuntime in interface Memorypublic Set<String> keys()
Memorypublic boolean exists(String key)
Memorypublic <R> R get(String key) throws IllegalArgumentException
Memoryget in interface MemoryR - the type of the valuekey - the key of the valueIllegalArgumentException - is thrown if the key does not existpublic void set(String key, 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 void and(String key, boolean bool)
Memorypublic void or(String key, boolean bool)
Memorypublic void incr(String key, long delta)
Memorypublic void write(DataOutput output)
public void readFields(DataInput input)
public String toString()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.