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

org.apache.tinkerpop.gremlin.ogm.paths.steps.Slice.kt Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
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