public class DatabaseController
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseController(NodeRPCConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
long |
countDocuments(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
CountOptions options) |
void |
createCollection(java.lang.String collectionName) |
void |
deleteCollection(java.lang.String collectionName) |
int |
deleteMany(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
DeleteOptions options) |
int |
deleteOne(java.lang.String collection,
com.fasterxml.jackson.databind.JsonNode filter,
DeleteOptions options) |
java.util.List<com.fasterxml.jackson.databind.JsonNode> |
find(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
FindOptions options) |
com.fasterxml.jackson.databind.JsonNode |
findOne(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
FindOptions options) |
InsertResult |
insertMany(java.lang.String collectionName,
java.util.List<com.fasterxml.jackson.databind.JsonNode> documents,
InsertOptions options) |
InsertResult |
insertOne(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode document,
InsertOptions options) |
java.util.List<com.fasterxml.jackson.databind.JsonNode> |
query(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
QueryOptions options) |
UpdateResult |
updateMany(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
com.fasterxml.jackson.databind.JsonNode update,
UpdateOptions options) |
UpdateResult |
updateOne(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
com.fasterxml.jackson.databind.JsonNode update,
UpdateOptions options) |
public DatabaseController(NodeRPCConnection connection)
public void createCollection(java.lang.String collectionName)
throws HiveException
HiveExceptionpublic void deleteCollection(java.lang.String collectionName)
throws HiveException
HiveExceptionpublic InsertResult insertOne(java.lang.String collectionName, com.fasterxml.jackson.databind.JsonNode document, InsertOptions options) throws HiveException
HiveExceptionpublic InsertResult insertMany(java.lang.String collectionName, java.util.List<com.fasterxml.jackson.databind.JsonNode> documents, InsertOptions options) throws HiveException
HiveExceptionpublic UpdateResult updateOne(java.lang.String collectionName, com.fasterxml.jackson.databind.JsonNode filter, com.fasterxml.jackson.databind.JsonNode update, UpdateOptions options) throws HiveException
HiveExceptionpublic UpdateResult updateMany(java.lang.String collectionName, com.fasterxml.jackson.databind.JsonNode filter, com.fasterxml.jackson.databind.JsonNode update, UpdateOptions options) throws HiveException
HiveExceptionpublic int deleteOne(java.lang.String collection,
com.fasterxml.jackson.databind.JsonNode filter,
DeleteOptions options)
throws HiveException
HiveExceptionpublic int deleteMany(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
DeleteOptions options)
throws HiveException
HiveExceptionpublic long countDocuments(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
CountOptions options)
throws HiveException
HiveExceptionpublic com.fasterxml.jackson.databind.JsonNode findOne(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
FindOptions options)
throws HiveException
HiveExceptionpublic java.util.List<com.fasterxml.jackson.databind.JsonNode> find(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
FindOptions options)
throws HiveException
HiveExceptionpublic java.util.List<com.fasterxml.jackson.databind.JsonNode> query(java.lang.String collectionName,
com.fasterxml.jackson.databind.JsonNode filter,
QueryOptions options)
throws HiveException
HiveException