Class XMLResultSet
java.lang.Object
ca.phon.query.db.xml.XMLResultSet
- All Implemented Interfaces:
ResultSet,JAXBWrapper<ResultSetType>,Iterable<Result>
- Direct Known Subclasses:
XMLLazyResultSet
XML-based implementation of
ResultSet.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the given result to the result setGets the corpus name for this result set.String[]Return the list of metadata keys used in the result set.getResult(int idx) Get the result specified by the given index.Gets the session name for this result set.Gets the session path for this result set.Get the JAXB element associated with this object.iterator()Return an iterator for all results in this set.iterator(boolean includeExcluded) Return an iterator for resultsintnumberOfResults(boolean includeExcluded) Returns the number of results in this set.removeResult(int idx) Remove the result specified by the given index.voidsetSessionPath(String sessionPath) Sets the session path for this result set.voidsetSessionPath(String corpus, String session) Sets the session path for this result set.intsize()Get the number of results in this set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
resultSet
JAXB object
-
-
Method Details
-
getXMLObject
Get the JAXB element associated with this object.- Specified by:
getXMLObjectin interfaceJAXBWrapper<ResultSetType>- Returns:
-
getCorpus
-
getSession
Description copied from interface:ResultSetGets the session name for this result set.- Specified by:
getSessionin interfaceResultSet- Returns:
- the session name
-
getSessionPath
Description copied from interface:ResultSetGets the session path for this result set. The session path should be of the form [corpus].[session]- Specified by:
getSessionPathin interfaceResultSet- Returns:
- the session path
-
setSessionPath
Description copied from interface:ResultSetSets the session path for this result set. The session path should be of the form [corpus].[session]- Specified by:
setSessionPathin interfaceResultSet- Parameters:
sessionPath- the session path
-
setSessionPath
Description copied from interface:ResultSetSets the session path for this result set. The session path will be of the form [corpus].[session]- Specified by:
setSessionPathin interfaceResultSet
-
size
-
removeResult
Description copied from interface:ResultSetRemove the result specified by the given index.- Specified by:
removeResultin interfaceResultSet- Parameters:
idx-- Returns:
- the removed result
-
getResult
-
addResult
-
numberOfResults
public int numberOfResults(boolean includeExcluded) Description copied from interface:ResultSetReturns the number of results in this set.- Specified by:
numberOfResultsin interfaceResultSet- Parameters:
includeExcluded- include excluded results in the set. Iftruethis will return this same value as.size()invalid reference
#getResults()- Returns:
- the number of (non-excluded) results in this set
-
getMetadataKeys
Description copied from interface:ResultSetReturn the list of metadata keys used in the result set.- Specified by:
getMetadataKeysin interfaceResultSet- Returns:
- the list of metadata keys
-
iterator
-
iterator
-