T
- public class SimpleElasticsearchPersistentEntity<T> extends BasicPersistentEntity<T,ElasticsearchPersistentProperty> implements ElasticsearchPersistentEntity<T>, ApplicationContextAware
PersistentEntity
implementation holdingConstructor and Description |
---|
SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation) |
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, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersionProperty
doWithAssociations, 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, requiresPropertyPopulation
forEach, iterator, spliterator
public SimpleElasticsearchPersistentEntity(TypeInformation<T> typeInformation)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public IndexCoordinates getIndexCoordinates()
getIndexCoordinates
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 org.elasticsearch.index.VersionType getVersionType()
getVersionType
in interface ElasticsearchPersistentEntity<T>
public String settingPath()
settingPath
in interface ElasticsearchPersistentEntity<T>
public boolean isCreateIndexAndMapping()
isCreateIndexAndMapping
in interface ElasticsearchPersistentEntity<T>
public boolean hasScoreProperty()
ElasticsearchPersistentEntity
ElasticsearchPersistentEntity
has a 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()
ElasticsearchPersistentEntity
ElasticsearchPersistentEntity
. 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 MutablePersistentEntity<T,ElasticsearchPersistentProperty>
addPersistentProperty
in class BasicPersistentEntity<T,ElasticsearchPersistentProperty>
public void setPersistentPropertyAccessorFactory(PersistentPropertyAccessorFactory factory)
setPersistentPropertyAccessorFactory
in interface MutablePersistentEntity<T,ElasticsearchPersistentProperty>
setPersistentPropertyAccessorFactory
in class BasicPersistentEntity<T,ElasticsearchPersistentProperty>
@Nullable public ElasticsearchPersistentProperty getPersistentPropertyWithFieldName(String fieldName)
ElasticsearchPersistentEntity
ElasticsearchPersistentProperty
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 nullCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.