K
- graph ID typepublic abstract class UnaryResultBase<K> extends ResultBase implements UnaryResult<K>, TranslatableResult<K>
Constructor and Description |
---|
UnaryResultBase() |
Modifier and Type | Method and Description |
---|---|
K |
getVertexId0()
Get the first vertex ID.
|
void |
setVertexId0(K vertexId0)
Set the first 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()
UnaryResult
getVertexId0
in interface UnaryResult<K>
public void setVertexId0(K vertexId0)
UnaryResult
setVertexId0
in interface UnaryResult<K>
vertexId0
- 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–2023 The Apache Software Foundation. All rights reserved.