com.bigdata.relation.rule
Interface ISlice

All Superinterfaces:
Serializable
All Known Implementing Classes:
Slice

public interface ISlice
extends Serializable

Indicates the first solution to be returned to the caller (offset) and the #of solutions to be returned (limit).

Version:
$Id: ISlice.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 long getLast()
          The index of the last solution that we will generate (OFFSET + LIMIT).
 long getLimit()
          The maximum #of solutions to be returned to the caller.
 long getOffset()
          The first solution to be returned to the caller.
 

Method Detail

getOffset

long getOffset()
The first solution to be returned to the caller. A value of ZERO (0) indicates that all solutions should be returned.


getLimit

long getLimit()
The maximum #of solutions to be returned to the caller. A value of Long.MAX_VALUE indicates that there is no limit.

TODO:
modify to be consistent with IAccessPath.iterator(long, long, int) where a limit of ZERO (0L) is interpreted as NO limit and a limit of Long.MAX_VALUE is interpreted as ZERO (0L) (that is, also no limit).

getLast

long getLast()
The index of the last solution that we will generate (OFFSET + LIMIT). If OFFSET + LIMIT would be greater than Long.MAX_VALUE, then use Long.MAX_VALUE instead.



Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.