Package io.inversion.elasticsearch
Class ElasticsearchDb
java.lang.Object
io.inversion.Rule<T>
io.inversion.Db<ElasticsearchDb>
io.inversion.elasticsearch.ElasticsearchDb
- All Implemented Interfaces:
Comparable<ElasticsearchDb>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
io.inversion.Rule.RuleMatcher -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int[]final Stringintprotected final intprotected StringFields inherited from class io.inversion.Db
bootstrap, collections, dryRun, excludeColumns, includeColumns, includeTables, log, reservedParams, typeFields inherited from class io.inversion.Rule
ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order, params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.inversion.CollectionbuildCollection(String tableName) voidconfigDb()protected voidDeletes a single specific resource.voidio.inversion.Results<io.inversion.utils.Rows.Row>org.elasticsearch.client.RestHighLevelClientgetUrl()Methods inherited from class io.inversion.Db
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, withTypeMethods inherited from class io.inversion.Rule
afterWiringComplete, 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, withParams
-
Field Details
-
defaultSource
-
maxRequestDuration
protected final int maxRequestDuration- See Also:
-
allowedFailResponseCodes
protected final int[] allowedFailResponseCodes -
maxElasticQuerySize
public int maxElasticQuerySize -
url
-
-
Constructor Details
-
ElasticsearchDb
public ElasticsearchDb() -
ElasticsearchDb
-
ElasticsearchDb
-
-
Method Details
-
getElasticClient
public org.elasticsearch.client.RestHighLevelClient getElasticClient() -
doSelect
public io.inversion.Results<io.inversion.utils.Rows.Row> doSelect(io.inversion.Collection table, List<io.inversion.rql.Term> columnMappedTerms) throws io.inversion.ApiException - Overrides:
doSelectin classio.inversion.Db<ElasticsearchDb>- Throws:
io.inversion.ApiException
-
doDelete
public void doDelete(io.inversion.Collection table, List<Map<String, Object>> indexValues) throws io.inversion.ApiException- Overrides:
doDeletein classio.inversion.Db<ElasticsearchDb>- Throws:
io.inversion.ApiException
-
deleteRow
protected void deleteRow(io.inversion.Collection collection, Map<String, Object> indexValues) throws io.inversion.ApiExceptionDeletes a single specific resource.- Parameters:
collection- the collection to delete fromindexValues- identifiers for the records to delete- Throws:
io.inversion.ApiException
-
doUpsert
public List doUpsert(io.inversion.Collection table, List<Map<String, Object>> rows) throws io.inversion.ApiException- Overrides:
doUpsertin classio.inversion.Db<ElasticsearchDb>- Throws:
io.inversion.ApiException
-
upsertRow
public String upsertRow(io.inversion.Collection table, Map<String, Object> columnMappedTermsRow) throws io.inversion.ApiException- Throws:
io.inversion.ApiException
-
configDb
public void configDb() throws io.inversion.ApiException- Overrides:
configDbin classio.inversion.Db<ElasticsearchDb>- Throws:
io.inversion.ApiException
-
buildCollection
-
getUrl
-
withUrl
-