public class Slice extends Object implements ISlice, Externalizable
Modifier and Type | Field and Description |
---|---|
static ISlice |
ALL
A slice corresponding to all results (offset is zero, limit is
Long.MAX_VALUE ). |
Constructor and Description |
---|
Slice(long offset,
long limit) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final transient ISlice ALL
Long.MAX_VALUE
).public Slice(long offset, long limit)
offset
- limit
- IllegalArgumentException
- if offset is negative.IllegalArgumentException
- if limit is non-positive.public long getOffset()
ISlice
public long getLimit()
ISlice
Long.MAX_VALUE
indicates that there is no limit.public long getLast()
ISlice
Long.MAX_VALUE
, then use
Long.MAX_VALUE
instead.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.