- All Implemented Interfaces:
ContentDescriptor,
AbstractReadHandle,
ValuesReadHandle,
ValuesResults
A ValuesHandle represents a list of values or of
tuples (combination of values for the same document) retrieved from
the indexes.
-
Field Summary
-
Constructor Summary
Constructors
Zero-argument constructor.
-
Method Summary
Returns the aggregate result for the named
aggregate function.
Returns an array of the aggregates.
Returns performance metrics about the
query.
Returns the name of the values.
Return the query definition for this set of
results.
Returns the type of the values.
Returns an array of the values.
protected void
void
Sets the format associated with this
handle.
void
Sets the query definition used when retrieving
values.
Fluent setter for the format associated with
this handle.
Methods inherited from
class com.marklogic.client.impl.HandleImplementation
getPointInTimeQueryTimestamp, isResendable, sendContent,
setPointInTimeQueryTimestamp, setResendable,
setResponseServerTimestamp
Methods
inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Method Details
-
setFormat
public void setFormat(Format format)
Sets the format associated with this handle.
This handle only supports XML.
- Specified by:
setFormat in interface ContentDescriptor
- Overrides:
setFormat in
class BaseHandle<InputStream,OperationNotSupported>
- Parameters:
format - The format, which must be Format.XML or
an exception will be raised.
-
withFormat
Fluent setter for the format associated with
this handle. This handle only supports XML.
- Parameters:
format - The format, which must be Format.XML or
an exception will be raised.
- Returns:
- The SearchHandle instance on which this method was called.
-
receiveAs
- Overrides:
receiveAs in
class com.marklogic.client.impl.HandleImplementation<InputStream,OperationNotSupported>
-
receiveContent
- Overrides:
receiveContent in
class com.marklogic.client.impl.HandleImplementation<InputStream,OperationNotSupported>
-
setQueryCriteria
Sets the query definition used when retrieving
values.
Calling this method always deletes any cached values.
- Parameters:
vdef - The new ValuesDefinition
-
getQueryCriteria
Return the query definition for this set of
results.
- Specified by:
getQueryCriteria in
interface ValuesResults
- Returns:
- The query criteria.
-
getName
Returns the name of the values.
- Specified by:
getName in
interface ValuesResults
- Returns:
- The name.
-
getType
Returns the type of the values.
The type is an XSD type, for example "xs:boolean" or
"xs:integer".
- Specified by:
getType in
interface ValuesResults
- Returns:
- The type.
-
getValues
Returns an array of the values.
- Specified by:
getValues in
interface ValuesResults
- Returns:
- The array of values.
-
getAggregates
Returns an array of the aggregates.
- Specified by:
getAggregates in
interface ValuesResults
- Returns:
- The array of aggrgates.
-
getAggregate
Returns the aggregate result for the named
aggregate function.
- Specified by:
getAggregate in
interface ValuesResults
- Parameters:
name - The name of the aggregate function.
- Returns:
- The corresponding aggregate, or null if no such aggregate
exists.
-
getMetrics
Returns performance metrics about the
query.
- Specified by:
getMetrics in
interface ValuesResults
- Returns:
- The metrics
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.