| Package | Description |
|---|---|
| com.mysql.cj.xdevapi |
Java classes for X DevAPI support.
|
| testsuite.x.devapi |
Dev API test suite.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DbDocImpl
Represents a JSON object:
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<DbDoc> |
AddStatementImpl.newDocs |
| Modifier and Type | Method and Description |
|---|---|
DbDoc |
DbDocImpl.add(java.lang.String key,
JsonValue val) |
DbDoc |
DbDoc.add(java.lang.String key,
JsonValue val)
Add
JsonValue to the top-level document hierarchy. |
DbDoc |
DbDocValueFactory.createFromBytes(byte[] bytes,
int offset,
int length,
Field f)
Interpret the given byte array as a string.
|
DbDoc |
DbDocValueFactory.createFromNull() |
DbDoc |
DbDocFactory.createFromProtocolEntity(ProtocolEntity internalRow) |
DbDoc |
RowImpl.getDbDoc(int pos) |
DbDoc |
Row.getDbDoc(int pos)
Retrieve the value for column at position `pos' (starting at 0) as a DbDoc value.
|
DbDoc |
RowImpl.getDbDoc(java.lang.String fieldName) |
DbDoc |
Row.getDbDoc(java.lang.String fieldName)
Retrieve the value for column `fieldName' as a DbDoc value.
|
DbDoc |
CollectionImpl.getOne(java.lang.String id) |
DbDoc |
Collection.getOne(java.lang.String id)
Return the document with the given id.
|
DbDoc |
CollectionImpl.newDoc() |
DbDoc |
Collection.newDoc()
Create a new document.
|
static DbDoc |
JsonParser.parseDoc(java.lang.String jsonString)
Create
DbDoc object from JSON string. |
static DbDoc |
JsonParser.parseDoc(java.io.StringReader reader)
Create
DbDoc object from JSON string provided by reader. |
| Modifier and Type | Method and Description |
|---|---|
AddStatement |
CollectionImpl.add(DbDoc... docs) |
AddStatement |
AddStatementImpl.add(DbDoc... docs) |
AddStatement |
Collection.add(DbDoc... documents)
Add a sequence of documents.
|
AddStatement |
AddStatement.add(DbDoc... documents)
Add a sequence of DbDocs.
|
AddStatement |
CollectionImpl.add(DbDoc doc) |
AddStatement |
Collection.add(DbDoc document)
Add a document in the form of a DbDoc.
|
Result |
CollectionImpl.addOrReplaceOne(java.lang.String id,
DbDoc doc) |
Result |
Collection.addOrReplaceOne(java.lang.String id,
DbDoc doc)
Adds the document to the collection.
|
Result |
CollectionImpl.createIndex(java.lang.String indexName,
DbDoc indexDefinition) |
Result |
Collection.createIndex(java.lang.String indexName,
DbDoc indexDefinition)
Create a new statement defining the creation of an index on this collection.
|
private void |
CreateIndexParams.init(java.lang.String idxName,
DbDoc indexDefinition) |
ModifyStatement |
ModifyStatementImpl.patch(DbDoc document) |
ModifyStatement |
ModifyStatement.patch(DbDoc document)
Takes in a patch object and applies it on all documents matching the modify() filter, using the JSON_MERGE_PATCH() function.
|
Result |
CollectionImpl.replaceOne(java.lang.String id,
DbDoc doc) |
Result |
Collection.replaceOne(java.lang.String id,
DbDoc doc)
Takes in a document object that will replace the matching document.
|
| Constructor and Description |
|---|
AddStatementImpl(MysqlxSession mysqlxSession,
java.lang.String schema,
java.lang.String collection,
DbDoc newDoc) |
AddStatementImpl(MysqlxSession mysqlxSession,
java.lang.String schema,
java.lang.String collection,
DbDoc[] newDocs) |
CreateIndexParams(java.lang.String indexName,
DbDoc indexDefinition)
Constructor.
|
IndexField(DbDoc indexField)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
private static DbDoc |
CompressionTest.longDataDoc |
private static DbDoc |
CompressionTest.shortDataDoc |