- All Known Implementing Classes:
RoutingFields.Noop
,RoutingPathFields
public interface RoutingFields
Collects fields contributing to routing from documents.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Noop implementation that doesn't perform validations on routing fields -
Method Summary
Modifier and TypeMethodDescriptionaddBoolean
(String fieldName, boolean value) addIp
(String fieldName, InetAddress value) default RoutingFields
This overloaded method tries to take advantage of the fact that the UTF-8 value is already computed in some cases when we want to collect routing fields, so we can save re-computing the UTF-8 encoding.addUnsignedLong
(String fieldName, long value) static RoutingFields
fromIndexSettings
(IndexSettings indexSettings) Collect routing fields from index settings
-
Method Details
-
fromIndexSettings
Collect routing fields from index settings -
addString
This overloaded method tries to take advantage of the fact that the UTF-8 value is already computed in some cases when we want to collect routing fields, so we can save re-computing the UTF-8 encoding. -
addString
-
addIp
-
addLong
-
addUnsignedLong
-
addBoolean
-