public class ElasticsearchDb extends io.inversion.Db<ElasticsearchDb>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
allowedFailResponseCodes |
java.lang.String |
defaultSource |
int |
maxElasticQuerySize |
protected int |
maxRequestDuration |
protected java.lang.String |
url |
| Constructor and Description |
|---|
ElasticsearchDb() |
ElasticsearchDb(java.lang.String elasticUrl) |
ElasticsearchDb(java.lang.String name,
java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
protected io.inversion.Collection |
buildCollection(java.lang.String tableName) |
void |
configDb() |
protected void |
deleteRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> indexValues)
Deletes a single specific resource.
|
void |
doDelete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues) |
io.inversion.Results<io.inversion.utils.Rows.Row> |
doSelect(io.inversion.Collection table,
java.util.List<io.inversion.rql.Term> columnMappedTerms) |
java.util.List |
doUpsert(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rows) |
org.elasticsearch.client.RestHighLevelClient |
getElasticClient() |
java.lang.String |
getUrl() |
java.lang.String |
upsertRow(io.inversion.Collection table,
java.util.Map<java.lang.String,java.lang.Object> columnMappedTermsRow) |
ElasticsearchDb |
withUrl(java.lang.String url) |
beautifyCollectionName, beautifyName, buildCollections, buildRelationships, castDbOutput, castJsonInput, castJsonInput, configApi, delete, doPatch, doShutdown, doShutdown, doStartup, excludeTable, filterOutJsonProperty, getCollection, getCollectionByTableName, getCollections, getProperty, getType, isBootstrap, isDryRun, isRunning, isType, makeRelationshipName, mapToColumnNames, mapToColumnNames, mapToJsonNames, patch, removeCollection, select, shutdown, shutdown, startup, upsert, withBootstrap, withCollection, withCollections, withDryRun, withExcludeColumns, withIncludeColumns, withIncludeTable, withIncludeTables, withTypeafterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParamspublic final java.lang.String defaultSource
protected final int maxRequestDuration
protected final int[] allowedFailResponseCodes
public int maxElasticQuerySize
protected java.lang.String url
public ElasticsearchDb()
public ElasticsearchDb(java.lang.String elasticUrl)
public ElasticsearchDb(java.lang.String name,
java.lang.String url)
public org.elasticsearch.client.RestHighLevelClient getElasticClient()
public io.inversion.Results<io.inversion.utils.Rows.Row> doSelect(io.inversion.Collection table,
java.util.List<io.inversion.rql.Term> columnMappedTerms)
throws io.inversion.ApiException
doSelect in class io.inversion.Db<ElasticsearchDb>io.inversion.ApiExceptionpublic void doDelete(io.inversion.Collection table,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> indexValues)
throws io.inversion.ApiException
doDelete in class io.inversion.Db<ElasticsearchDb>io.inversion.ApiExceptionprotected void deleteRow(io.inversion.Collection collection,
java.util.Map<java.lang.String,java.lang.Object> indexValues)
throws io.inversion.ApiException
collection - the collection to delete fromindexValues - identifiers for the records to deleteio.inversion.ApiExceptionpublic java.util.List 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<ElasticsearchDb>io.inversion.ApiExceptionpublic java.lang.String upsertRow(io.inversion.Collection table,
java.util.Map<java.lang.String,java.lang.Object> columnMappedTermsRow)
throws io.inversion.ApiException
io.inversion.ApiExceptionpublic void configDb()
throws io.inversion.ApiException
configDb in class io.inversion.Db<ElasticsearchDb>io.inversion.ApiExceptionprotected io.inversion.Collection buildCollection(java.lang.String tableName)
public java.lang.String getUrl()
public ElasticsearchDb withUrl(java.lang.String url)
Copyright © 2023 Rocket Partners, LLC. All rights reserved.