|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.metadata.impl.IndexedTypeDescriptorImpl
public class IndexedTypeDescriptorImpl
| Constructor Summary | |
|---|---|
IndexedTypeDescriptorImpl(TypeMetadata typeMetadata,
IndexManager[] indexManagers)
|
|
| Method Summary | |
|---|---|
BoostStrategy |
getDynamicBoost()
|
Set<FieldDescriptor> |
getFieldsForProperty(String propertyName)
Returns the set of index descriptors for the indexed field generated by the property with the given name. |
Set<IndexDescriptor> |
getIndexDescriptors()
Returns a set of IndexDescriptor instances describing Lucene index information, in particular the index name. |
FieldDescriptor |
getIndexedField(String fieldName)
Retrieves the field descriptor for a given field name. |
Set<FieldDescriptor> |
getIndexedFields()
|
Set<PropertyDescriptor> |
getIndexedProperties()
|
PropertyDescriptor |
getProperty(String propertyName)
Retrieves the property descriptor for a given property name. |
float |
getStaticBoost()
|
Class<?> |
getType()
|
boolean |
isIndexed()
|
boolean |
isSharded()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedTypeDescriptorImpl(TypeMetadata typeMetadata,
IndexManager[] indexManagers)
| Method Detail |
|---|
public Class<?> getType()
getType in interface IndexedTypeDescriptorpublic boolean isIndexed()
isIndexed in interface IndexedTypeDescriptortrue if the type for this descriptor is indexed, false otherwisepublic boolean isSharded()
isSharded in interface IndexedTypeDescriptortrue is this index is sharded, false otherwisepublic float getStaticBoost()
getStaticBoost in interface IndexedTypeDescriptorpublic BoostStrategy getDynamicBoost()
getDynamicBoost in interface IndexedTypeDescriptorpublic Set<IndexDescriptor> getIndexDescriptors()
IndexedTypeDescriptorIndexDescriptor instances describing Lucene index information, in particular the index name.
The index name can also be used to retrieve the actual IndexManager for this index via
org.hibernate.search.engine.spi.SearchFactoryImplementor#getIndexManagerHolder()#getIndexManager(String).
For non sharded indexes there will be only a single IndexDescriptor. The empty set is returned for an unindexed type
getIndexDescriptors in interface IndexedTypeDescriptorIndexDescriptor instances describing Lucene index informationpublic Set<PropertyDescriptor> getIndexedProperties()
getIndexedProperties in interface IndexedTypeDescriptorPropertyDescriptorspublic PropertyDescriptor getProperty(String propertyName)
IndexedTypeDescriptor
getProperty in interface IndexedTypeDescriptorpropertyName - the property name for which to return descriptor, cannot be null
null is returned in case a property with
the specified name does not existpublic Set<FieldDescriptor> getIndexedFields()
getIndexedFields in interface FieldContributorFieldDescriptors for the fields contributed by this elementpublic FieldDescriptor getIndexedField(String fieldName)
IndexedTypeDescriptor
getIndexedField in interface IndexedTypeDescriptorfieldName - the field name for which to return descriptor, cannot be null
null is returned in case a field with the specified name does not existpublic Set<FieldDescriptor> getFieldsForProperty(String propertyName)
IndexedTypeDescriptor
getFieldsForProperty in interface IndexedTypeDescriptorpropertyName - the property name, cannot be null
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||