Package io.inversion.elasticsearch
Class ElasticsearchDb
java.lang.Object
io.inversion.Db<ElasticsearchDb>
io.inversion.elasticsearch.ElasticsearchDb
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int[]final Stringintprotected final intprotected StringFields inherited from class io.inversion.Db
bootstrap, collections, dryRun, endpointPath, excludeColumns, includeColumns, includeTables, log, name, reservedParams, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.inversion.CollectionbuildCollection(String tableName) voidconfigDb()voidprotected voidDeletes a single specific resource.io.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, 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, withType
-
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 - Specified by:
doSelectin classio.inversion.Db<ElasticsearchDb>- Throws:
io.inversion.ApiException
-
delete
public void delete(io.inversion.Collection table, List<Map<String, Object>> indexValues) throws io.inversion.ApiException- Specified by:
deletein 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- Specified by:
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
-