|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.search.Document.Builder
com.google.appengine.api.search.ScoredDocument.Builder
public static final class ScoredDocument.Builder
A builder of scored documents. This is not thread-safe.
| Method Summary | |
|---|---|
ScoredDocument.Builder |
addExpression(Field expression)
Adds the expression to the builder. |
ScoredDocument.Builder |
addScore(double score)
Adds the score to the builder. |
ScoredDocument |
build()
Builds a valid document. |
ScoredDocument.Builder |
setCursor(Cursor cursor)
Sets the cursor to the next set of results from search. |
| Methods inherited from class com.google.appengine.api.search.Document.Builder |
|---|
addField, addField, setId, setLocale, setOrderId |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ScoredDocument.Builder setCursor(Cursor cursor)
cursor - the Cursor for the next set of results
from searchpublic ScoredDocument.Builder addScore(double score)
score - the score to add
public ScoredDocument.Builder addExpression(Field expression)
expression - the expression field to add
java.lang.IllegalArgumentException - if the expression field is invalidpublic ScoredDocument build()
build in class Document.Builderjava.lang.IllegalArgumentException - if the scored document built is
not valid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||