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, writeReplace
get, 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, toString
asArray, 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, isTimestamp
private 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()
BsonDocument
JsonMode.STRICT
output mode, and otherwise the default
settings of JsonWriterSettings.Builder
.toJson
in class BsonDocument
BsonDocument.toJson(JsonWriterSettings)
,
JsonWriterSettings
public java.lang.String toJson(JsonWriterSettings settings)
BsonDocument
JsonWriterSettings
.toJson
in class BsonDocument
settings
- the JSON writer settings<T> T findInDocument(AbstractByteBufBsonDocument.Finder<T> finder)
findInDocument
in class AbstractByteBufBsonDocument
public BsonDocument clone()
clone
in class BsonDocument
int getSizeInBytes()
BsonDocument toBsonDocument()
toBsonDocument
in class AbstractByteBufBsonDocument
private void readObject(java.io.ObjectInputStream stream) throws java.io.InvalidObjectException
java.io.InvalidObjectException