Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.search.util
Class AbstractConverterQueryResult<S,T>

java.lang.Object
  extended by oracle.webcenter.search.util.ConverterIterator<S,T>
      extended by 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

Field Summary

 

Fields inherited from interface oracle.webcenter.search.QueryResult
ESTIMATED_RESULT_COUNT, RESPONSE_TIME

 

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 oracle.webcenter.search.util.ConverterIterator
convert, hasNext, next, remove

 

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

 

Constructor Detail

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

Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.