public interface ElasticsearchPersistentEntity<T> extends PersistentEntity<T,ElasticsearchPersistentProperty>
doWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulation
forEach, iterator, spliterator
IndexCoordinates getIndexCoordinates()
short getShards()
short getReplicas()
boolean isUseServerConfiguration()
ElasticsearchPersistentProperty getVersionProperty()
getVersionProperty
in interface PersistentEntity<T,ElasticsearchPersistentProperty>
@Nullable Document.VersionType getVersionType()
boolean isCreateIndexAndMapping()
@Nullable ElasticsearchPersistentProperty getPersistentPropertyWithFieldName(String fieldName)
ElasticsearchPersistentProperty
with the given fieldName (may be set by the Field
annotation.fieldName
- to field name for the search, must not be nullboolean hasSeqNoPrimaryTermProperty()
ElasticsearchPersistentEntity
has a SeqNoPrimaryTerm
property. If this call
returns true, getSeqNoPrimaryTermProperty()
will return a non-null value.ElasticsearchPersistentEntity
does not define a SeqNoPrimaryTerm property.boolean hasJoinFieldProperty()
ElasticsearchPersistentEntity
has a JoinField
property. If this call returns
true, getJoinFieldProperty()
will return a non-null value.ElasticsearchPersistentEntity
does not define a JoinField property.@Nullable ElasticsearchPersistentProperty getSeqNoPrimaryTermProperty()
SeqNoPrimaryTerm
property of the ElasticsearchPersistentEntity
. Can be null
in case no such property is available on the entity.SeqNoPrimaryTerm
ElasticsearchPersistentProperty
of the PersistentEntity
or
null if not defined.@Nullable ElasticsearchPersistentProperty getJoinFieldProperty()
JoinField
property of the ElasticsearchPersistentEntity
. Can be null in case
no such property is available on the entity.JoinField
ElasticsearchPersistentProperty
of the PersistentEntity
or
null if not defined.default ElasticsearchPersistentProperty getRequiredSeqNoPrimaryTermProperty()
SeqNoPrimaryTerm
property of the ElasticsearchPersistentEntity
or throws an
IllegalStateException in case no such property is available on the entity.SeqNoPrimaryTerm
ElasticsearchPersistentProperty
of the PersistentEntity
.Settings getDefaultSettings()
@Nullable String resolveRouting(T bean)
bean
- the bean to resolve the routing forFieldNamingStrategy getFieldNamingStrategy()
FieldNamingStrategy
for the entityboolean writeTypeHints()
Dynamic dynamic()
dynamic
mapping parameter value.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.