Package | Description |
---|---|
sirius.db.es | |
sirius.db.es.types | |
sirius.db.mixing.properties |
Modifier and Type | Class and Description |
---|---|
class |
ElasticQuery<E extends ElasticEntity>
Provides a fluent query API for Elasticsearch.
|
Modifier and Type | Method and Description |
---|---|
protected <E extends ElasticEntity> |
Elastic.findEntity(E entity) |
protected <E extends ElasticEntity> |
Elastic.findEntity(Object id,
EntityDescriptor ed,
Function<String,sirius.kernel.commons.Value> context) |
<E extends ElasticEntity> |
Elastic.select(Class<E> type) |
Modifier and Type | Method and Description |
---|---|
protected static ElasticEntity |
Elastic.make(EntityDescriptor ed,
com.alibaba.fastjson.JSONObject obj)
Creates a new instance of the given entity type for the given data.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Elastic.createEntity(ElasticEntity entity,
EntityDescriptor ed) |
protected void |
Elastic.deleteEntity(ElasticEntity entity,
boolean force,
EntityDescriptor ed) |
protected String |
Elastic.determineId(ElasticEntity entity)
Determines the id of the entity.
|
protected String |
Elastic.determineIndex(EntityDescriptor ed,
ElasticEntity entity)
Determines the index to use for the given entity.
|
protected String |
Elastic.determineRouting(EntityDescriptor ed,
ElasticEntity entity)
Determines the routing value to be used for the given entity.
|
BulkContext |
BulkContext.forceDelete(ElasticEntity entity)
Queues an
BaseMapper.forceDelete(BaseEntity) in the batch context. |
BulkContext |
BulkContext.overwrite(ElasticEntity entity)
Queues an
BaseMapper.override(BaseEntity) in the batch context. |
protected boolean |
Elastic.toJSON(EntityDescriptor ed,
ElasticEntity entity,
com.alibaba.fastjson.JSONObject data)
Transforms the given entity to JSON.
|
BulkContext |
BulkContext.tryDelete(ElasticEntity entity)
Queues an
BaseMapper.tryDelete(BaseEntity) in the batch context. |
BulkContext |
BulkContext.tryUpdate(ElasticEntity entity)
Queues an
BaseMapper.tryUpdate(BaseEntity) in the batch context. |
protected void |
Elastic.updateEntity(ElasticEntity entity,
boolean force,
EntityDescriptor ed) |
Modifier and Type | Class and Description |
---|---|
class |
ElasticRef<E extends ElasticEntity>
Represents a reference from one entity to another.
|
class |
ElasticRefList<E extends ElasticEntity>
Represents a list of
entities being referenced by id. |
Modifier and Type | Method and Description |
---|---|
static <E extends ElasticEntity> |
ElasticRef.on(Class<E> type,
BaseEntityRef.OnDelete deleteHandler)
Generates an entity reference to the given entity type.
|
Modifier and Type | Method and Description |
---|---|
protected Optional<ElasticEntity> |
ElasticRefProperty.find(Class<ElasticEntity> type,
sirius.kernel.commons.Value value) |
Modifier and Type | Method and Description |
---|---|
protected Optional<ElasticEntity> |
ElasticRefProperty.find(Class<ElasticEntity> type,
sirius.kernel.commons.Value value) |
Copyright © 2018. All rights reserved.