File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -83,19 +83,28 @@ public class Bytes extends BSON {
83
83
* Set this option to prevent that.
84
84
*/
85
85
public static final int QUERYOPTION_NOTIMEOUT = 1 << 4 ;
86
+
86
87
/**
87
88
* Use with TailableCursor.
88
89
* If we are at the end of the data, block for a while rather than returning no data.
89
90
* After a timeout period, we do return as normal.
90
91
*/
91
92
public static final int QUERYOPTION_AWAITDATA = 1 << 5 ;
93
+
92
94
/**
93
95
* Stream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried.
94
96
* Faster when you are pulling a lot of data and know you want to pull it all down.
95
97
* Note: the client is not allowed to not read all the data unless it closes the connection.
96
98
*/
97
99
public static final int QUERYOPTION_EXHAUST = 1 << 6 ;
98
100
101
+ /**
102
+ * Use with sharding (mongos).
103
+ * Allows partial results from a sharded system if any shards are down/missing from the cluster. If not used an error will be returned
104
+ * from the mongos server.
105
+ */
106
+ public static final int QUERYOPTION_PARTIAL = 1 << 7 ;
107
+
99
108
/**
100
109
* Set when getMore is called but the cursor id is not valid at the server.
101
110
* Returned with zero results.
@@ -118,6 +127,7 @@ public class Bytes extends BSON {
118
127
*/
119
128
public static final int RESULTFLAG_AWAITCAPABLE = 8 ;
120
129
130
+
121
131
static class OptionHolder {
122
132
OptionHolder ( OptionHolder parent ){
123
133
_parent = parent ;
You can’t perform that action at this time.
0 commit comments