|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.webcenter.search.refine.RefinerBuilder<T>
public abstract class RefinerBuilder<T>
An abstract base class for building Refiners of type T. It is often constructed with a QName that it eventually passes on to the Refiner it builds.
| Constructor Summary | |
|---|---|
protected |
RefinerBuilder(QName name)Constructs a RefinerBuilder with a qualified name. |
| Method Summary | |
|---|---|
void |
consumeRow(Row row)Use the stored column name to access the column value and convert it to T and visit that T value. |
protected abstract T |
convert(java.lang.Object value)Method used by subclasses to convert any Object into an Object of type T. |
protected abstract Refiner<T> |
createRefiner(QName column, java.util.Map<T,java.lang.Integer> counters)Creates a Refiner with the column name and a map of counters for each entry of type T. |
Refiner<T> |
getRefiner()Gets the newly created Refiner. |
void |
visit(T value)Visits a T value that increments the count. |
void |
visit(T value, int count)Visits a T value and increase by the count |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RefinerBuilder(QName name)
name - the name to associate with the eventual Refiner built| Method Detail |
|---|
public void visit(T value)
value - a T value that we are keeping a count of
public void visit(T value,
int count)
value - a T value that we are keeping a count ofcount - increase by the countpublic void consumeRow(Row row)
row - a Row in a QueryResult<Row>public Refiner<T> getRefiner()
protected abstract Refiner<T> createRefiner(QName column,
java.util.Map<T,java.lang.Integer> counters)
column - a QName signifying the column to navigate overcounters - a Map of counters, one for each T value encounteredprotected abstract T convert(java.lang.Object value)
value - an arbitrary Object that can be converted to type T
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||