K
- graph ID typepublic abstract class BinaryResultBase<K> extends ResultBase implements BinaryResult<K>, TranslatableResult<K>
BinaryResult.MirrorResult<T,RT extends BinaryResult<T>>
Constructor and Description |
---|
BinaryResultBase() |
Modifier and Type | Method and Description |
---|---|
K |
getVertexId0()
Get the first vertex ID.
|
K |
getVertexId1()
Get the second vertex ID.
|
void |
setVertexId0(K vertexId0)
Set the first vertex ID.
|
void |
setVertexId1(K vertexId1)
Set the second 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()
BinaryResult
getVertexId0
in interface BinaryResult<K>
public void setVertexId0(K vertexId0)
BinaryResult
setVertexId0
in interface BinaryResult<K>
vertexId0
- new vertex IDpublic K getVertexId1()
BinaryResult
getVertexId1
in interface BinaryResult<K>
public void setVertexId1(K vertexId1)
BinaryResult
setVertexId1
in interface BinaryResult<K>
vertexId1
- 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–2022 The Apache Software Foundation. All rights reserved.