|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.relation.rule.Slice
public class Slice
Default implementation.
| Field Summary | |
|---|---|
static ISlice |
ALL
A slice corresponding to all results (offset is zero, limit is Long.MAX_VALUE). |
| Constructor Summary | |
|---|---|
Slice(long offset,
long limit)
|
|
| 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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final transient ISlice ALL
Long.MAX_VALUE).
| Constructor Detail |
|---|
public Slice(long offset,
long limit)
offset - limit -
IllegalArgumentException - if offset is negative.
IllegalArgumentException - if limit is non-positive.| Method Detail |
|---|
public long getOffset()
ISlice
getOffset in interface ISlicepublic long getLimit()
ISliceLong.MAX_VALUE indicates that there is no limit.
getLimit in interface ISlicepublic long getLast()
ISliceLong.MAX_VALUE, then use
Long.MAX_VALUE instead.
getLast in interface ISlicepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||