public class CosmosDb extends io.inversion.Db<CosmosDb>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
db |
protected com.microsoft.azure.documentdb.DocumentClient |
documentClient |
static java.lang.String |
INDEX_TYPE_PARTITION_KEY |
protected java.lang.String |
key |
protected java.lang.String |
uri |
| Constructor and Description |
|---|
CosmosDb() |
CosmosDb(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static com.microsoft.azure.documentdb.DocumentClient |
buildDocumentClient(java.lang.String uri,
java.lang.String key) |
void |
delete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues) |
protected void |
deleteRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> indexValues)
Deletes a single specific resource.
|
io.inversion.Results |
doSelect(io.inversion.Collection collection,
java.util.List<io.inversion.rql.Term> columnMappedTerms)
Finds the resource keys on the other side of the relationship
|
java.util.List<java.lang.String> |
doUpsert(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rows) |
protected java.lang.String |
getCollectionUri(io.inversion.Collection table) |
java.lang.String |
getDb() |
com.microsoft.azure.documentdb.DocumentClient |
getDocumentClient() |
java.lang.String |
getKey() |
java.lang.String |
getUri() |
boolean |
isAllowCrossPartitionQueries() |
java.lang.String |
upsertRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> row) |
CosmosDb |
withAllowCrossPartitionQueries(boolean allowCrossPartitionQueries) |
CosmosDb |
withDb(java.lang.String db) |
CosmosDb |
withDocumentClient(com.microsoft.azure.documentdb.DocumentClient documentClient) |
CosmosDb |
withKey(java.lang.String key) |
CosmosDb |
withUri(java.lang.String uri) |
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, configDb, doPatch, doShutdown, doShutdown, doStartup, filterOutJsonProperty, getCollectionByTableName, getCollections, getEndpointPath, getHref, getKey, getName, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapTo, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withEndpointPath, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withName, withTypepublic static final java.lang.String INDEX_TYPE_PARTITION_KEY
protected java.lang.String uri
protected java.lang.String db
protected java.lang.String key
protected transient com.microsoft.azure.documentdb.DocumentClient documentClient
public static com.microsoft.azure.documentdb.DocumentClient buildDocumentClient(java.lang.String uri,
java.lang.String key)
public io.inversion.Results doSelect(io.inversion.Collection collection,
java.util.List<io.inversion.rql.Term> columnMappedTerms)
throws io.inversion.ApiException
doSelect in class io.inversion.Db<CosmosDb>collection - the collection to querycolumnMappedTerms - the query termsio.inversion.ApiException - if selection fails for any reasonpublic java.util.List<java.lang.String> doUpsert(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rows)
throws io.inversion.ApiException
doUpsert in class io.inversion.Db<CosmosDb>io.inversion.ApiExceptionpublic java.lang.String upsertRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> row)
throws io.inversion.ApiException
io.inversion.ApiExceptionpublic void delete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues)
throws io.inversion.ApiException
delete in class io.inversion.Db<CosmosDb>io.inversion.ApiExceptionprotected void deleteRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> indexValues)
throws io.inversion.ApiException
Rest url format for Cosmos deletions - https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/docs/{doc}
collection - the collection to deleteindexValues - identifiers for the documents to deleteio.inversion.ApiExceptionprotected java.lang.String getCollectionUri(io.inversion.Collection table)
public java.lang.String getUri()
public CosmosDb withUri(java.lang.String uri)
public java.lang.String getDb()
public CosmosDb withDb(java.lang.String db)
public java.lang.String getKey()
public CosmosDb withKey(java.lang.String key)
public boolean isAllowCrossPartitionQueries()
public CosmosDb withAllowCrossPartitionQueries(boolean allowCrossPartitionQueries)
public CosmosDb withDocumentClient(com.microsoft.azure.documentdb.DocumentClient documentClient)
public com.microsoft.azure.documentdb.DocumentClient getDocumentClient()
Copyright © 2021 Rocket Partners, LLC. All rights reserved.