|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ektorp.ViewQuery
public class ViewQuery
Constructor Summary | |
---|---|
ViewQuery()
|
Method Summary | |
---|---|
java.lang.String |
buildQuery()
|
ViewQuery |
dbPath(java.lang.String s)
|
ViewQuery |
descending(boolean b)
View rows are sorted by the key; specifying descending=true will reverse their order. |
ViewQuery |
designDocId(java.lang.String s)
|
ViewQuery |
endDocId(java.lang.String s)
|
ViewQuery |
endKey(java.lang.String s)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEndKey()
|
java.lang.String |
getKey()
|
java.lang.String |
getStartKey()
|
ViewQuery |
group(boolean b)
The group option controls whether the reduce function reduces to a set of distinct keys or to a single result row. |
ViewQuery |
groupLevel(int i)
|
int |
hashCode()
|
ViewQuery |
includeDocs(boolean b)
The include_docs option will include the associated document. |
ViewQuery |
inclusiveEnd(boolean b)
The inclusive_end option controls whether the endkey is included in the result. |
ViewQuery |
key(java.lang.String s)
|
ViewQuery |
limit(int i)
limit=0 you don't get any data, but all meta-data for this View. |
ViewQuery |
reduce(boolean b)
If a view contains both a map and reduce function, querying that view will by default return the result of the reduce function. |
void |
reset()
Resets internal state so this builder can be used again. |
ViewQuery |
skip(int i)
The skip option should only be used with small values, as skipping a large range of documents this way is inefficient (it scans the index from the startkey and then skips N elements, but still needs to read all the index values to do that). |
ViewQuery |
staleOk(boolean b)
The stale option can be used for higher performance at the cost of possibly not seeing the all latest data. |
ViewQuery |
startDocId(java.lang.String s)
|
ViewQuery |
startKey(java.lang.String s)
|
ViewQuery |
viewName(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewQuery()
Method Detail |
---|
public ViewQuery dbPath(java.lang.String s)
public ViewQuery designDocId(java.lang.String s)
public ViewQuery viewName(java.lang.String s)
public ViewQuery key(java.lang.String s)
need
- to be properly JSON encoded values (for example, key="string" for a string value).
public ViewQuery startKey(java.lang.String s)
need
- to be properly JSON encoded values (for example, startkey="string" for a string value).
public ViewQuery startDocId(java.lang.String s)
public ViewQuery endKey(java.lang.String s)
need
- to be properly JSON encoded values (for example, endkey="string" for a string value).
public ViewQuery endDocId(java.lang.String s)
public ViewQuery limit(int i)
i
-
public ViewQuery staleOk(boolean b)
b
-
public ViewQuery descending(boolean b)
b
-
public ViewQuery skip(int i)
i
-
public ViewQuery group(boolean b)
b
-
public ViewQuery groupLevel(int i)
public ViewQuery reduce(boolean b)
b
-
public ViewQuery includeDocs(boolean b)
b
-
public ViewQuery inclusiveEnd(boolean b)
b
-
public void reset()
public java.lang.String getKey()
public java.lang.String getStartKey()
public java.lang.String getEndKey()
public java.lang.String buildQuery()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |