|
XCC/J 3.1-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An XdmItem that
is a member of a ResultSequence.
The values associated with ResultItem instances may
be transient. ResultItem wraps an
XdmItem instance and also implements the
XdmItem interface. Invoking the methods
of the XdmItem interface are passed through
to the contained instance.
Because a ResultSequence may be streaming,
the contained XdmItem may be have been
partially consumed. Use the isFetchable()
method to determine if it is safe to access the value.
com.marklogic.xcc.types| Method Summary | |
void |
cache()
If this item is not already cached, read it fully from the result stream so that it is buffered in memory. |
int |
getIndex()
The position (zero-based) of this ResultItem in its containing ResultSequence. |
XdmItem |
getItem()
Returns the actual XdmItem value
wrapped by this ResultItem. |
boolean |
isFetchable()
Indicates if the value of this ResultItem may be fetched. |
| Methods inherited from interface com.marklogic.xcc.types.XdmItem |
asInputStream, asReader, getItemType, isCached, writeTo, writeTo |
| Methods inherited from interface com.marklogic.xcc.types.XdmValue |
asString, getValueType |
| Method Detail |
public XdmItem getItem()
XdmItem value
wrapped by this ResultItem. The instance
returned may be tested with instanceof.
XdmItem.public int getIndex()
ResultSequence.
public boolean isFetchable()
XdmItem.asInputStream() or XdmItem.asReader() is called.
ResultSequence.next() is
called and returns this XdmItem.public void cache()
StreamingResultException - If an IOException ocurrs reading the result data.
|
XCC/J 3.1-9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com