com.mongodb
Class Bytes
java.lang.Object
org.bson.BSON
com.mongodb.Bytes
public class Bytes
- extends BSON
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, decode, encode, regexFlag, regexFlags, regexFlags, toInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORDER
public static final ByteOrder ORDER
- Little-endian
QUERYOPTION_TAILABLE
public static final int QUERYOPTION_TAILABLE
- See Also:
- Constant Field Values
QUERYOPTION_SLAVEOK
public static final int QUERYOPTION_SLAVEOK
- See Also:
- Constant Field Values
QUERYOPTION_OPLOGREPLAY
public static final int QUERYOPTION_OPLOGREPLAY
- See Also:
- Constant Field Values
QUERYOPTION_NOTIMEOUT
public static final int QUERYOPTION_NOTIMEOUT
- See Also:
- Constant Field Values
QUERYOPTION_AWAITDATA
public static final int QUERYOPTION_AWAITDATA
- See Also:
- Constant Field Values
RESULTFLAG_CURSORNOTFOUND
public static final int RESULTFLAG_CURSORNOTFOUND
- See Also:
- Constant Field Values
RESULTFLAG_ERRSET
public static final int RESULTFLAG_ERRSET
- See Also:
- Constant Field Values
RESULTFLAG_SHARDCONFIGSTALE
public static final int RESULTFLAG_SHARDCONFIGSTALE
- See Also:
- Constant Field Values
RESULTFLAG_AWAITCAPABLE
public static final int RESULTFLAG_AWAITCAPABLE
- See Also:
- Constant Field Values
Bytes
public Bytes()
getType
public static byte getType(Object o)
- Gets the type byte for a given object.
- Parameters:
o
- the object
- Returns:
- the byte value associated with the type, or 0 if
o
was null