@Deprecated public class KeyCachingLazyBSONObject extends LazyBSONObject
LazyBSONObject.ElementRecord, LazyBSONObject.LazyBSONEntryIterator, LazyBSONObject.LazyBSONEntrySet, LazyBSONObject.LazyBSONKeyIterator, LazyBSONObject.LazyBSONKeySet, LazyBSONObject.ReadOnlySet<E>| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<java.lang.String,LazyBSONObject.ElementRecord> |
fieldIndex
Deprecated.
|
_callback, _doc_start_offset, _input, FIRST_ELMT_OFFSET| Constructor and Description |
|---|
KeyCachingLazyBSONObject(BSONByteBuffer buffer,
int offset,
LazyBSONCallback callback)
Deprecated.
|
KeyCachingLazyBSONObject(BSONByteBuffer buffer,
LazyBSONCallback callback)
Deprecated.
|
KeyCachingLazyBSONObject(byte[] data,
int offset,
LazyBSONCallback cbk)
Deprecated.
|
KeyCachingLazyBSONObject(byte[] data,
LazyBSONCallback cbk)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsField(java.lang.String s)
Deprecated.
Checks if this object contains a field with the given name.
|
private void |
ensureFieldList()
Deprecated.
|
java.lang.Object |
get(java.lang.String key)
Deprecated.
Gets a field from this object by a given name.
|
containsKey, entrySet, equals, getBSONSize, getBytes, getElement, getElementBSONSize, getElements, getElementType, getElementValue, getOffset, hashCode, isElementEmpty, isEmpty, keySet, pipe, put, putAll, putAll, removeField, sizeCString, toMap, toStringprivate java.util.HashMap<java.lang.String,LazyBSONObject.ElementRecord> fieldIndex
public KeyCachingLazyBSONObject(byte[] data,
LazyBSONCallback cbk)
public KeyCachingLazyBSONObject(byte[] data,
int offset,
LazyBSONCallback cbk)
@Deprecated public KeyCachingLazyBSONObject(BSONByteBuffer buffer, LazyBSONCallback callback)
KeyCachingLazyBSONObject(byte[], LazyBSONCallback) instead@Deprecated public KeyCachingLazyBSONObject(BSONByteBuffer buffer, int offset, LazyBSONCallback callback)
KeyCachingLazyBSONObject(byte[], int, LazyBSONCallback) insteadpublic java.lang.Object get(java.lang.String key)
BSONObjectget in interface BSONObjectget in class LazyBSONObjectkey - The name of the field fetchpublic boolean containsField(java.lang.String s)
BSONObjectcontainsField in interface BSONObjectcontainsField in class LazyBSONObjects - Field name for which to checkprivate void ensureFieldList()