public class MultiSlice extends Slice
Slice.Sort| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
protected List<Slice> |
subslices |
constrained, MAXLENGTH, SCALARSLICE, SCALARSLICES, sort, UNDEFINED| Constructor and Description |
|---|
MultiSlice(List<Slice> subslices) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compare two slices for equality
|
Slice |
finish()
Perform sanity checks on a slice and repair where possible.
|
long |
getCount()
Compute the number of elements in
the slice.
|
Slice |
getSubSlice(int i) |
List<Slice> |
getSubSlices() |
int |
hashCode() |
Slice |
setMaxSize(long size) |
String |
toConstraintString()
Convert this multislice to a string
suitable for use in a constraint
|
String |
toString() |
compose, getFirst, getLast, getMax, getSize, getSort, getStop, getStride, isConstrained, isWhole, iterator, setConstrained, setIndices, setIndices, setWhole, toStringpublic MultiSlice(List<Slice> subslices) throws DapException
DapExceptionpublic boolean equals(Object o)
public String toConstraintString() throws DapException
toConstraintString in class SliceDapExceptionpublic Slice finish() throws DapException
Slicefinish in class SliceDapException - if slice is malformedpublic List<Slice> getSubSlices()
getSubSlices in class Slicepublic Slice getSubSlice(int i)
getSubSlice in class Slicepublic long getCount()
Slicepublic Slice setMaxSize(long size) throws DapException
setMaxSize in class SliceDapException