Class TextIndexDefinition.TextIndexedFieldSpec
java.lang.Object
org.springframework.data.mongodb.core.index.TextIndexDefinition.TextIndexedFieldSpec
- Enclosing class:
- TextIndexDefinition
- Since:
- 1.6
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionTextIndexedFieldSpec
(String fieldname) Create newTextIndexDefinition.TextIndexedFieldSpec
for given fieldname without any weight.TextIndexedFieldSpec
(String fieldname, Float weight) Create newTextIndexDefinition.TextIndexedFieldSpec
for given fieldname and weight. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the fieldname associated with theTextIndexDefinition.TextIndexedFieldSpec
.Get the weight associated with theTextIndexDefinition.TextIndexedFieldSpec
.int
hashCode()
boolean
-
Constructor Details
-
TextIndexedFieldSpec
Create newTextIndexDefinition.TextIndexedFieldSpec
for given fieldname without any weight.- Parameters:
fieldname
-
-
TextIndexedFieldSpec
Create newTextIndexDefinition.TextIndexedFieldSpec
for given fieldname and weight.- Parameters:
fieldname
-weight
-
-
-
Method Details
-
getFieldname
Get the fieldname associated with theTextIndexDefinition.TextIndexedFieldSpec
.- Returns:
-
getWeight
Get the weight associated with theTextIndexDefinition.TextIndexedFieldSpec
.- Returns:
-
isWeighted
public boolean isWeighted()- Returns:
- true if
weight
has a value that is a valid number.
-
hashCode
public int hashCode() -
equals
-