public class Bytes extends BSON
| Modifier and Type | Field and Description | 
|---|---|
| static ByteOrder | ORDERLittle-endian | 
| static int | QUERYOPTION_AWAITDATAUse with TailableCursor. | 
| static int | QUERYOPTION_EXHAUSTStream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried. | 
| static int | QUERYOPTION_NOTIMEOUTThe server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use. | 
| static int | QUERYOPTION_OPLOGREPLAYInternal replication use only - driver should not set | 
| static int | QUERYOPTION_PARTIALUse with sharding (mongos). | 
| static int | QUERYOPTION_SLAVEOKWhen turned on, read queries will be directed to slave servers instead of the primary server. | 
| static int | QUERYOPTION_TAILABLETailable means cursor is not closed when the last data is retrieved. | 
| static int | RESULTFLAG_AWAITCAPABLESet when the server supports the AwaitData Query option. | 
| static int | RESULTFLAG_CURSORNOTFOUNDSet when getMore is called but the cursor id is not valid at the server. | 
| static int | RESULTFLAG_ERRSETSet when query failed. | 
| static int | RESULTFLAG_SHARDCONFIGSTALEDrivers should ignore this. | 
| Constructor and Description | 
|---|
| Bytes() | 
| Modifier and Type | Method and Description | 
|---|---|
| static byte | getType(Object object)Gets the type byte for a given object. | 
addDecodingHook, addEncodingHook, applyDecodingHooks, applyEncodingHooks, clearAllHooks, clearDecodingHooks, clearEncodingHooks, decode, encode, getDecodingHooks, getEncodingHooks, hasDecodeHooks, hasEncodeHooks, regexFlag, regexFlags, regexFlags, removeDecodingHook, removeDecodingHooks, removeEncodingHook, removeEncodingHooks, toIntpublic 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
public static byte getType(Object object)
object - the object