All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.tinkerpop.gremlin.ogm.traversals.GraphTraversalToMany.kt Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
package org.apache.tinkerpop.gremlin.ogm.traversals

import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal

class GraphTraversalToMany internal constructor(val traversal: GraphTraversal) : Sequence {

    override fun iterator() = traversal

    fun fetch(): List = toList()

    fun toSingle() = GraphTraversalToSingle(traversal)

    fun toOptional() = GraphTraversalToOptional(traversal)
}

fun  GraphTraversal.toMany() = GraphTraversalToMany(this)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy