T - public class SimpleElasticsearchPersistentEntity<T> extends org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty> implements ElasticsearchPersistentEntity<T>, org.springframework.context.ApplicationContextAware
PersistentEntity implementation holding| Constructor and Description |
|---|
SimpleElasticsearchPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPersistentProperty(ElasticsearchPersistentProperty property) |
String |
getIndexName() |
String |
getIndexStoreType() |
String |
getIndexType() |
ElasticsearchPersistentProperty |
getParentIdProperty() |
String |
getParentType() |
String |
getRefreshInterval() |
short |
getReplicas() |
ElasticsearchPersistentProperty |
getScoreProperty()
Returns the score property of the
ElasticsearchPersistentEntity. |
short |
getShards() |
boolean |
hasScoreProperty()
Returns whether the
ElasticsearchPersistentEntity has an score property. |
boolean |
isCreateIndexAndMapping() |
boolean |
isUseServerConfiguration() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setPersistentPropertyAccessorFactory(org.springframework.data.mapping.model.PersistentPropertyAccessorFactory factory) |
String |
settingPath() |
addAssociation, doWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getEvaluationContext, getFallbackIsNewStrategy, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPropertyAccessor, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, iterator, requiresPropertyPopulation, returnPropertyIfBetterIdPropertyCandidateOrNull, setEvaluationContextProvider, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVersionPropertydoWithAssociations, doWithAssociations, doWithProperties, doWithProperties, findAnnotation, getIdentifierAccessor, getIdProperty, getName, getPersistenceConstructor, getPersistentProperties, getPersistentProperty, getPersistentProperty, getPropertyAccessor, getRequiredAnnotation, getRequiredIdProperty, getRequiredPersistentProperty, getRequiredVersionProperty, getType, getTypeAlias, getTypeInformation, hasIdProperty, hasVersionProperty, isAnnotationPresent, isConstructorArgument, isIdProperty, isImmutable, isNew, isVersionProperty, requiresPropertyPopulationforEach, iterator, spliteratorpublic SimpleElasticsearchPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic String getIndexName()
getIndexName in interface ElasticsearchPersistentEntity<T>public String getIndexType()
getIndexType in interface ElasticsearchPersistentEntity<T>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>public String getRefreshInterval()
getRefreshInterval in interface ElasticsearchPersistentEntity<T>public String getParentType()
getParentType in interface ElasticsearchPersistentEntity<T>public ElasticsearchPersistentProperty getParentIdProperty()
getParentIdProperty in interface ElasticsearchPersistentEntity<T>public String settingPath()
settingPath in interface ElasticsearchPersistentEntity<T>public boolean isCreateIndexAndMapping()
isCreateIndexAndMapping in interface ElasticsearchPersistentEntity<T>public boolean hasScoreProperty()
ElasticsearchPersistentEntityElasticsearchPersistentEntity has an score property. If this call returns
true, ElasticsearchPersistentEntity.getScoreProperty() will return a non-null value.hasScoreProperty in interface ElasticsearchPersistentEntity<T>ElasticsearchPersistentEntity does not define a score property.@Nullable public ElasticsearchPersistentProperty getScoreProperty()
ElasticsearchPersistentEntityElasticsearchPersistentEntity. Can be null in case no score
property is available on the entity.getScoreProperty in interface ElasticsearchPersistentEntity<T>ElasticsearchPersistentProperty of the PersistentEntity or null if not
defined.public void addPersistentProperty(ElasticsearchPersistentProperty property)
addPersistentProperty in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,ElasticsearchPersistentProperty>addPersistentProperty in class org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>public void setPersistentPropertyAccessorFactory(org.springframework.data.mapping.model.PersistentPropertyAccessorFactory factory)
setPersistentPropertyAccessorFactory in interface org.springframework.data.mapping.model.MutablePersistentEntity<T,ElasticsearchPersistentProperty>setPersistentPropertyAccessorFactory in class org.springframework.data.mapping.model.BasicPersistentEntity<T,ElasticsearchPersistentProperty>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.