|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bson.BSON
com.mongodb.Bytes
public class Bytes
Class that hold definitions of the wire protocol
Field Summary | |
---|---|
static ByteOrder |
ORDER
Little-endian |
static int |
QUERYOPTION_AWAITDATA
Use with TailableCursor. |
static int |
QUERYOPTION_EXHAUST
Stream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried. |
static int |
QUERYOPTION_NOTIMEOUT
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. |
static int |
QUERYOPTION_OPLOGREPLAY
Internal replication use only - driver should not set |
static int |
QUERYOPTION_PARTIAL
Use with sharding (mongos). |
static int |
QUERYOPTION_SLAVEOK
When turned on, read queries will be directed to slave servers instead of the primary server. |
static int |
QUERYOPTION_TAILABLE
Tailable means cursor is not closed when the last data is retrieved. |
static int |
RESULTFLAG_AWAITCAPABLE
Set when the server supports the AwaitData Query option. |
static int |
RESULTFLAG_CURSORNOTFOUND
Set when getMore is called but the cursor id is not valid at the server. |
static int |
RESULTFLAG_ERRSET
Set when query failed. |
static int |
RESULTFLAG_SHARDCONFIGSTALE
Drivers should ignore this. |
Fields inherited from class org.bson.BSON |
---|
_utf8, ARRAY, B_BINARY, B_FUNC, B_GENERAL, B_UUID, BINARY, BOOLEAN, CODE, CODE_W_SCOPE, DATE, EOO, MAXKEY, MINKEY, NULL, NUMBER, NUMBER_INT, NUMBER_LONG, OBJECT, OID, REF, REGEX, STRING, SYMBOL, TIMESTAMP, UNDEFINED |
Constructor Summary | |
---|---|
Bytes()
|
Method Summary | |
---|---|
static byte |
getType(Object o)
Gets the type byte for a given object. |
Methods inherited from class org.bson.BSON |
---|
addDecodingHook, addEncodingHook, applyDecodingHooks, applyEncodingHooks, clearAllHooks, clearDecodingHooks, clearEncodingHooks, decode, encode, getDecodingHooks, getEncodingHooks, hasDecodeHooks, regexFlag, regexFlags, regexFlags, removeDecodingHook, removeDecodingHooks, removeEncodingHook, removeEncodingHooks, toInt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ByteOrder ORDER
public static final int QUERYOPTION_TAILABLE
public static final int QUERYOPTION_SLAVEOK
public static final int QUERYOPTION_OPLOGREPLAY
public static final int QUERYOPTION_NOTIMEOUT
public static final int QUERYOPTION_AWAITDATA
public static final int QUERYOPTION_EXHAUST
public static final int QUERYOPTION_PARTIAL
public static final int RESULTFLAG_CURSORNOTFOUND
public static final int RESULTFLAG_ERRSET
public static final int RESULTFLAG_SHARDCONFIGSTALE
public static final int RESULTFLAG_AWAITCAPABLE
Constructor Detail |
---|
public Bytes()
Method Detail |
---|
public static byte getType(Object o)
o
- the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |