| Modifier and Type | Class and Description |
|---|---|
static class |
Meta.CursorOption
Meta.CursorOption represents OP_QUERY wire protocol flags to change the behavior of queries. |
| Constructor and Description |
|---|
Meta() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFlag(Meta.CursorOption option)
Add
Meta.CursorOption influencing behavior of the DBCursor. |
boolean |
equals(Object obj) |
String |
getComment() |
Set<Meta.CursorOption> |
getFlags() |
Long |
getMaxScan() |
Long |
getMaxTimeMsec() |
boolean |
getSnapshot() |
int |
hashCode() |
boolean |
hasValues() |
void |
setComment(String comment)
Add a comment to the query.
|
void |
setMaxScan(long maxScan)
Only scan the specified number of documents.
|
void |
setMaxTime(long timeout,
TimeUnit timeUnit)
Set the maximum time limit for processing operations.
|
void |
setMaxTimeMsec(long maxTimeMsec)
Set the maximum time limit in milliseconds for processing operations.
|
void |
setSnapshot(boolean useSnapshot)
Using snapshot prevents the cursor from returning a document more than once.
|
Iterable<Map.Entry<String,Object>> |
values()
Get
Iterable of set meta values. |
public Long getMaxTimeMsec()
public void setMaxTimeMsec(long maxTimeMsec)
maxTimeMsec - public void setMaxTime(long timeout,
TimeUnit timeUnit)
timeout - timeUnit - public Long getMaxScan()
public void setMaxScan(long maxScan)
maxScan - public void setComment(String comment)
comment - public String getComment()
public void setSnapshot(boolean useSnapshot)
useSnapshot - public boolean getSnapshot()
public boolean addFlag(Meta.CursorOption option)
Meta.CursorOption influencing behavior of the DBCursor.option - must not be null.public Set<Meta.CursorOption> getFlags()
public boolean hasValues()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.