T - public class SimpleElasticsearchPersistentEntity<T> extends BasicPersistentEntity<T,ElasticsearchPersistentProperty> implements ElasticsearchPersistentEntity<T>
PersistentEntity implementation holding| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleElasticsearchPersistentEntity.ContextConfiguration
Configuration settings passed in from the creating
SimpleElasticsearchMappingContext. |
| Constructor and Description |
|---|
SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation,
SimpleElasticsearchPersistentEntity.ContextConfiguration contextConfiguration) |
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, setPersistentPropertyAccessorFactory, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredSeqNoPrimaryTermProperty, getVersionPropertydoWithAll, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getInstanceCreatorMetadata, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getPropertyPathAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isCreatorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorpublic SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation, SimpleElasticsearchPersistentEntity.ContextConfiguration contextConfiguration)
public IndexCoordinates getIndexCoordinates()
getIndexCoordinates in interface ElasticsearchPersistentEntity<T>@Nullable public String getIndexStoreType()
getIndexStoreType in interface ElasticsearchPersistentEntity<T>public short getShards()
getShards in interface ElasticsearchPersistentEntity<T>public short getReplicas()
getReplicas in interface ElasticsearchPersistentEntity<T>public boolean isUseServerConfiguration()
isUseServerConfiguration in interface ElasticsearchPersistentEntity<T>@Nullable public String getRefreshInterval()
getRefreshInterval in interface ElasticsearchPersistentEntity<T>@Nullable public Document.VersionType getVersionType()
getVersionType in interface ElasticsearchPersistentEntity<T>public boolean isCreateIndexAndMapping()
isCreateIndexAndMapping in interface ElasticsearchPersistentEntity<T>public FieldNamingStrategy getFieldNamingStrategy()
getFieldNamingStrategy in interface ElasticsearchPersistentEntity<T>FieldNamingStrategy for the entitypublic boolean writeTypeHints()
writeTypeHints in interface ElasticsearchPersistentEntity<T>public void addPersistentProperty(ElasticsearchPersistentProperty property)
addPersistentProperty in interface MutablePersistentEntity<T,ElasticsearchPersistentProperty>addPersistentProperty in class BasicPersistentEntity<T,ElasticsearchPersistentProperty>@Nullable public ElasticsearchPersistentProperty getPersistentPropertyWithFieldName(String fieldName)
ElasticsearchPersistentEntityElasticsearchPersistentProperty with the given fieldName (may be set by the Field
annotation.getPersistentPropertyWithFieldName in interface ElasticsearchPersistentEntity<T>fieldName - to field name for the search, must not be nullpublic boolean hasSeqNoPrimaryTermProperty()
ElasticsearchPersistentEntityElasticsearchPersistentEntity has a SeqNoPrimaryTerm property. If this call
returns true, ElasticsearchPersistentEntity.getSeqNoPrimaryTermProperty() will return a non-null value.hasSeqNoPrimaryTermProperty in interface ElasticsearchPersistentEntity<T>ElasticsearchPersistentEntity does not define a SeqNoPrimaryTerm property.public boolean hasJoinFieldProperty()
ElasticsearchPersistentEntityElasticsearchPersistentEntity has a JoinField property. If this call returns
true, ElasticsearchPersistentEntity.getJoinFieldProperty() will return a non-null value.hasJoinFieldProperty in interface ElasticsearchPersistentEntity<T>ElasticsearchPersistentEntity does not define a JoinField property.@Nullable public ElasticsearchPersistentProperty getSeqNoPrimaryTermProperty()
ElasticsearchPersistentEntitySeqNoPrimaryTerm property of the ElasticsearchPersistentEntity. Can be null
in case no such property is available on the entity.getSeqNoPrimaryTermProperty in interface ElasticsearchPersistentEntity<T>SeqNoPrimaryTerm ElasticsearchPersistentProperty of the PersistentEntity or
null if not defined.@Nullable public ElasticsearchPersistentProperty getJoinFieldProperty()
ElasticsearchPersistentEntityJoinField property of the ElasticsearchPersistentEntity. Can be null in case
no such property is available on the entity.getJoinFieldProperty in interface ElasticsearchPersistentEntity<T>JoinField ElasticsearchPersistentProperty of the PersistentEntity or
null if not defined.@Nullable public String resolveRouting(T bean)
ElasticsearchPersistentEntityresolveRouting in interface ElasticsearchPersistentEntity<T>bean - the bean to resolve the routing forpublic String settingPath()
settingPath in interface ElasticsearchPersistentEntity<T>public Settings getDefaultSettings()
ElasticsearchPersistentEntitygetDefaultSettings in interface ElasticsearchPersistentEntity<T>public Dynamic dynamic()
dynamic in interface ElasticsearchPersistentEntity<T>dynamic mapping parameter value.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.