K
- graph ID typepublic abstract class TertiaryResultBase<K> extends ResultBase implements TertiaryResult<K>, TranslatableResult<K>
Constructor and Description |
---|
TertiaryResultBase() |
Modifier and Type | Method and Description |
---|---|
K |
getVertexId0()
Get the first vertex ID.
|
K |
getVertexId1()
Get the second vertex ID.
|
K |
getVertexId2()
Get the third vertex ID.
|
void |
setVertexId0(K vertexId0)
Set the first vertex ID.
|
void |
setVertexId1(K vertexId1)
Set the second vertex ID.
|
void |
setVertexId2(K vertexId2)
Set the third vertex ID.
|
<T> TranslatableResult<T> |
translate(TranslateFunction<K,T> translator,
TranslatableResult<T> reuse,
Collector<TranslatableResult<T>> out)
Output the result after transforming the vertex ID type.
|
toString
public K getVertexId0()
TertiaryResult
getVertexId0
in interface TertiaryResult<K>
public void setVertexId0(K vertexId0)
TertiaryResult
setVertexId0
in interface TertiaryResult<K>
vertexId0
- new vertex IDpublic K getVertexId1()
TertiaryResult
getVertexId1
in interface TertiaryResult<K>
public void setVertexId1(K vertexId1)
TertiaryResult
setVertexId1
in interface TertiaryResult<K>
vertexId1
- new vertex IDpublic K getVertexId2()
TertiaryResult
getVertexId2
in interface TertiaryResult<K>
public void setVertexId2(K vertexId2)
TertiaryResult
setVertexId2
in interface TertiaryResult<K>
vertexId2
- new vertex IDpublic <T> TranslatableResult<T> translate(TranslateFunction<K,T> translator, TranslatableResult<T> reuse, Collector<TranslatableResult<T>> out) throws Exception
TranslatableResult
translate
in interface TranslatableResult<K>
T
- ID output typetranslator
- translates type K
to type T
reuse
- reusable valueout
- output collectorException
- on errorCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.