Search in sources :

Example 1 with TemporalSirixStream

use of org.sirix.xquery.stream.TemporalSirixStream in project sirix by sirixdb.

the class DBNode method getFuture.

@Override
public Stream<AbstractTemporalNode<DBNode>> getFuture(final boolean includeSelf) {
    moveRtx();
    final IncludeSelf include = includeSelf ? IncludeSelf.YES : IncludeSelf.NO;
    return new TemporalSirixStream(new FutureAxis(mRtx, include), mCollection);
}
Also used : TemporalSirixStream(org.sirix.xquery.stream.TemporalSirixStream) FutureAxis(org.sirix.axis.temporal.FutureAxis) IncludeSelf(org.sirix.axis.IncludeSelf)

Example 2 with TemporalSirixStream

use of org.sirix.xquery.stream.TemporalSirixStream in project sirix by sirixdb.

the class DBNode method getEarlier.

@Override
public Stream<AbstractTemporalNode<DBNode>> getEarlier(final boolean includeSelf) {
    moveRtx();
    final IncludeSelf include = includeSelf ? IncludeSelf.YES : IncludeSelf.NO;
    return new TemporalSirixStream(new PastAxis(mRtx, include), mCollection);
}
Also used : TemporalSirixStream(org.sirix.xquery.stream.TemporalSirixStream) PastAxis(org.sirix.axis.temporal.PastAxis) IncludeSelf(org.sirix.axis.IncludeSelf)

Aggregations

IncludeSelf (org.sirix.axis.IncludeSelf)2 TemporalSirixStream (org.sirix.xquery.stream.TemporalSirixStream)2 FutureAxis (org.sirix.axis.temporal.FutureAxis)1 PastAxis (org.sirix.axis.temporal.PastAxis)1