public final class TinkerMemory extends Object implements Memory.Admin
Memory.Admin, Memory.Exceptions| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
currentMap |
Map<String,MemoryComputeKey> |
memoryKeys |
Map<String,Object> |
previousMap |
| Constructor and Description |
|---|
TinkerMemory(VertexProgram<?> vertexProgram,
Set<MapReduce> mapReducers) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
Object value) |
protected void |
checkKeyValue(String key,
Object value) |
protected void |
complete() |
protected void |
completeSubRound() |
<R> R |
get(String key) |
int |
getIteration() |
long |
getRuntime() |
void |
incrIteration() |
boolean |
isInitialIteration() |
Set<String> |
keys() |
void |
set(String key,
Object value) |
void |
setIteration(int iteration) |
void |
setRuntime(long runTime) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasImmutablepublic final Map<String,MemoryComputeKey> memoryKeys
public TinkerMemory(VertexProgram<?> vertexProgram, Set<MapReduce> mapReducers)
public void incrIteration()
incrIteration in interface Memory.Adminpublic void setIteration(int iteration)
setIteration in interface Memory.Adminpublic int getIteration()
getIteration in interface Memorypublic void setRuntime(long runTime)
setRuntime in interface Memory.Adminpublic long getRuntime()
getRuntime in interface Memoryprotected void complete()
protected void completeSubRound()
public boolean isInitialIteration()
isInitialIteration in interface Memorypublic <R> R get(String key) throws IllegalArgumentException
get in interface MemoryIllegalArgumentExceptionCopyright © 2013–2021 Apache Software Foundation. All rights reserved.