class ByteBufBsonDocument extends AbstractByteBufBsonDocument
AbstractByteBufBsonDocument.Finder<T>| Modifier and Type | Field and Description |
|---|---|
private ByteBuf |
byteBuf |
private static long |
serialVersionUID |
| Constructor and Description |
|---|
ByteBufBsonDocument(ByteBuf byteBuf) |
| Modifier and Type | Method and Description |
|---|---|
BsonDocument |
clone() |
(package private) static java.util.List<ByteBufBsonDocument> |
createList(ByteBufferBsonOutput bsonOutput,
int startPosition) |
(package private) static java.util.List<ByteBufBsonDocument> |
createList(ResponseBuffers responseBuffers) |
(package private) static ByteBufBsonDocument |
createOne(ByteBufferBsonOutput bsonOutput,
int startPosition) |
(package private) <T> T |
findInDocument(AbstractByteBufBsonDocument.Finder<T> finder) |
(package private) int |
getSizeInBytes() |
private void |
readObject(java.io.ObjectInputStream stream) |
(package private) BsonDocument |
toBsonDocument() |
java.lang.String |
toJson()
Gets a JSON representation of this document using the
JsonMode.STRICT output mode, and otherwise the default
settings of JsonWriterSettings.Builder. |
java.lang.String |
toJson(JsonWriterSettings settings)
Gets a JSON representation of this document using the given
JsonWriterSettings. |
append, clear, containsKey, containsValue, entrySet, equals, get, getFirstKey, hashCode, isEmpty, keySet, put, putAll, remove, size, values, writeReplaceget, getArray, getArray, getBinary, getBinary, getBoolean, getBoolean, getBsonType, getDateTime, getDateTime, getDecimal128, getDecimal128, getDocument, getDocument, getDouble, getDouble, getInt32, getInt32, getInt64, getInt64, getNumber, getNumber, getObjectId, getObjectId, getRegularExpression, getRegularExpression, getString, getString, getTimestamp, getTimestamp, isArray, isBinary, isBoolean, isDateTime, isDecimal128, isDocument, isDouble, isInt32, isInt64, isNull, isNumber, isObjectId, isString, isTimestamp, parse, toBsonDocument, toStringasArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestampprivate static final long serialVersionUID
private final transient ByteBuf byteBuf
ByteBufBsonDocument(ByteBuf byteBuf)
static java.util.List<ByteBufBsonDocument> createList(ResponseBuffers responseBuffers)
static java.util.List<ByteBufBsonDocument> createList(ByteBufferBsonOutput bsonOutput, int startPosition)
static ByteBufBsonDocument createOne(ByteBufferBsonOutput bsonOutput, int startPosition)
public java.lang.String toJson()
BsonDocumentJsonMode.STRICT output mode, and otherwise the default
settings of JsonWriterSettings.Builder.toJson in class BsonDocumentBsonDocument.toJson(JsonWriterSettings),
JsonWriterSettingspublic java.lang.String toJson(JsonWriterSettings settings)
BsonDocumentJsonWriterSettings.toJson in class BsonDocumentsettings - the JSON writer settings<T> T findInDocument(AbstractByteBufBsonDocument.Finder<T> finder)
findInDocument in class AbstractByteBufBsonDocumentpublic BsonDocument clone()
clone in class BsonDocumentint getSizeInBytes()
BsonDocument toBsonDocument()
toBsonDocument in class AbstractByteBufBsonDocumentprivate void readObject(java.io.ObjectInputStream stream)
throws java.io.InvalidObjectException
java.io.InvalidObjectException