public static final class QueryOptions.QueryRange extends QueryOptions.FacetableConstraintConfiguration implements TupleSource, ConstraintSource, RangeIndexed, TermSource
Modifier and Type | Class and Description |
---|---|
static class |
QueryOptions.QueryRange.Bucket
Configures a range, for use in grouping range index values in facets.
|
static class |
QueryOptions.QueryRange.ComputedBucket
Models a bucket on a range constraint whose values are anchored to
time, and computed based on the current time.
|
Constructor and Description |
---|
QueryRange()
Zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addBucket(QueryOptions.QueryRange.Bucket bucket)
Add a bucket to this QueryRange's buckets.
|
void |
addBuckets(List<Buckets> buckets)
Add a list of buckets to the buckets for this QueryRange.
|
QueryOptions.QueryRange |
addComputedBucket(QueryOptions.QueryRange.ComputedBucket computedBucket)
Add a computed bucket to this QueryRange's buckets.
|
void |
build(QueryOptions.QueryTuples tuples)
Add this QueryRange to the tuples query.
|
void |
build(QueryOptions.QueryValues values)
Add this QueryRange to the values query.
|
void |
deleteBuckets()
remove all computed and defined buckets from a RangeOption
|
List<QueryOptions.QueryRange.Bucket> |
getBuckets()
Returns the list of buckets for this QueryRange.
|
List<QueryOptions.QueryRange.ComputedBucket> |
getComputedBuckets()
The list of computed buckets for this QueryRange.
|
addFacetOption, doFacets, getCollation, getDoFacets, getFacetOptions, getType, setCollation, setDoFacets, setFacetOptions, setType
addTermOption, getAttribute, getElement, getFieldName, getFragmentScope, getJsonKeyName, getPath, getPathIndex, getPathNamespaceBindings, getTermOptions, getWeight, setAttribute, setElement, setField, setFragmentScope, setJsonKey, setPath, setTermOptions, setWeight
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCollation, setType
setAttribute, setElement, setField, setJsonKey, setPath
getTermOptions
public void addBucket(QueryOptions.QueryRange.Bucket bucket)
bucket
- a Bucket object for use with this QueryRangepublic QueryOptions.QueryRange addComputedBucket(QueryOptions.QueryRange.ComputedBucket computedBucket)
computedBucket
- a ComputedBucket object for use with this QueryRangepublic void deleteBuckets()
public List<QueryOptions.QueryRange.Bucket> getBuckets()
public List<QueryOptions.QueryRange.ComputedBucket> getComputedBuckets()
public void addBuckets(List<Buckets> buckets)
buckets
- the bucket listpublic void build(QueryOptions.QueryTuples tuples)
build
in interface TupleSource
public void build(QueryOptions.QueryValues values)
build
in interface TupleSource
Copyright © 2013-2016 MarkLogic Corporation.