org.apache.tinkerpop.gremlin.ogm.paths.steps.Slice.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-gremlin-ogm Show documentation
Show all versions of kotlin-gremlin-ogm Show documentation
The Object Graph Mapping Library for Kotlin and Gremlin
package org.apache.tinkerpop.gremlin.ogm.paths.steps
import org.apache.tinkerpop.gremlin.ogm.paths.Path
/**
* A path that filters out objects outside a given range.
*/
class SliceStep(private val range: LongRange) : Step.ToOptional({
it.traversal.range(range.start, range.endInclusive + 1)
})
fun Path.ToMany.slice(range: LongRange): Path.ToMany = to(SliceStep(range))
© 2015 - 2024 Weber Informatics LLC | Privacy Policy