public class MedianVertexProgram extends MindmapsVertexProgram<Long>
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
analyticsElements
The types that are reserved by analytics and are not "seen" by analytics.
|
static String |
COUNT |
static String |
DEGREE |
static String |
FOUND |
static String |
INDEX_END |
static String |
INDEX_MEDIAN |
static String |
INDEX_START |
static String |
LABEL |
static String |
LABEL_SELECTED |
static int |
MAX_ITERATION |
static String |
MEDIAN |
static String |
NEGATIVE_COUNT |
static String |
PIVOT |
static String |
PIVOT_NEGATIVE |
static String |
PIVOT_POSITIVE |
static String |
POSITIVE_COUNT |
| Constructor and Description |
|---|
MedianVertexProgram() |
MedianVertexProgram(Set<String> selectedTypes,
Set<String> statisticsResourceTypes,
String resourceDataType) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getElementComputeKeys() |
Set<String> |
getMemoryComputeKeys() |
Set<org.apache.tinkerpop.gremlin.process.computer.MessageScope> |
getMessageScopes(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
org.apache.tinkerpop.gremlin.process.computer.GraphComputer.Persist |
getPreferredPersist() |
org.apache.tinkerpop.gremlin.process.computer.GraphComputer.ResultGraph |
getPreferredResultGraph() |
void |
loadState(org.apache.tinkerpop.gremlin.structure.Graph graph,
org.apache.commons.configuration.Configuration configuration)
Load
persistentProperties and any hard coded fields from an apache config object for use by the
spark executor. |
void |
safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<Long> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
An alternative to the execute method when ghost vertices are an issue.
|
void |
setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
void |
storeState(org.apache.commons.configuration.Configuration configuration)
Store
persistentProperties and any hard coded fields in an apache config object for propagation to
spark executors. |
boolean |
terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory) |
String |
toString() |
clone, executepublic static final int MAX_ITERATION
public static final String DEGREE
public static final String LABEL
public static final String COUNT
public static final String INDEX_START
public static final String INDEX_END
public static final String INDEX_MEDIAN
public static final String MEDIAN
public static final String PIVOT
public static final String PIVOT_POSITIVE
public static final String PIVOT_NEGATIVE
public static final String POSITIVE_COUNT
public static final String NEGATIVE_COUNT
public static final String FOUND
public static final String LABEL_SELECTED
public org.apache.tinkerpop.gremlin.process.computer.GraphComputer.Persist getPreferredPersist()
getPreferredPersist in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>getPreferredPersist in class MindmapsVertexProgram<Long>public org.apache.tinkerpop.gremlin.process.computer.GraphComputer.ResultGraph getPreferredResultGraph()
getPreferredResultGraph in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>getPreferredResultGraph in class MindmapsVertexProgram<Long>public Set<org.apache.tinkerpop.gremlin.process.computer.MessageScope> getMessageScopes(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
getMessageScopes in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>getMessageScopes in class MindmapsVertexProgram<Long>public void storeState(org.apache.commons.configuration.Configuration configuration)
persistentProperties and any hard coded fields in an apache config object for propagation to
spark executors.storeState in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>storeState in class MindmapsVertexProgram<Long>configuration - the apache config object that will be propagatedpublic void loadState(org.apache.tinkerpop.gremlin.structure.Graph graph,
org.apache.commons.configuration.Configuration configuration)
persistentProperties and any hard coded fields from an apache config object for use by the
spark executor.loadState in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>graph - the tinker graphconfiguration - the apache config object containing the valuespublic void setup(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
setup in interface org.apache.tinkerpop.gremlin.process.computer.VertexProgram<Long>setup in class MindmapsVertexProgram<Long>public void safeExecute(org.apache.tinkerpop.gremlin.structure.Vertex vertex,
org.apache.tinkerpop.gremlin.process.computer.Messenger<Long> messenger,
org.apache.tinkerpop.gremlin.process.computer.Memory memory)
MindmapsVertexProgramvertex - a vertex that may be a ghostmessenger - Tinker message passing objectmemory - Tinker memory objectpublic boolean terminate(org.apache.tinkerpop.gremlin.process.computer.Memory memory)
Copyright © 2016. All rights reserved.