Skip navigation links
oracle.webcenter.search.util
Class AbstractConverterQueryResult<S,T>
java.lang.Object
oracle.webcenter.search.util.ConverterIterator<S,T>
oracle.webcenter.search.util.AbstractConverterQueryResult<S,T>
- All Implemented Interfaces:
- java.util.Iterator<T>, QueryResult<T>
-
public abstract class AbstractConverterQueryResult<S,T>
- extends ConverterIterator<S,T>
- implements QueryResult<T>
This abstract base class makes use of the ConverterIterator interface to allow Search API implementors to easily pass in a ready-made Iterator of any type and convert it to either a Row or any other types they desire to expose.
- Since:
- 11.1.1.0.0 Beta 2
Constructor Summary |
protected |
AbstractConverterQueryResult(java.util.Iterator<S> source)
This constructor takes in an Iterator of type S so it can convert S to T. |
Method Summary |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Default implementation of the getProperties to subclasses to not have to implement this directly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
AbstractConverterQueryResult
protected AbstractConverterQueryResult(java.util.Iterator<S> source)
- This constructor takes in an Iterator of type S so it can convert S to T.
- Parameters:
source
- an Iterator of type S
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Default implementation of the getProperties to subclasses to not have to implement this directly.
-
- Specified by:
getProperties
in interface QueryResult<T>
-
- Returns:
- a Map of String keys and String values holding properties of the QueryResult.
Skip navigation links
Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.