Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class DocumentDimensions.OnlySingleValueAllowed
java.lang.Object
org.elasticsearch.index.mapper.DocumentDimensions.OnlySingleValueAllowed
- All Implemented Interfaces:
DocumentDimensions
- Enclosing interface:
- DocumentDimensions
public static class DocumentDimensions.OnlySingleValueAllowed
extends Object
implements DocumentDimensions
Makes sure that each dimension only appears on time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.DocumentDimensions
DocumentDimensions.OnlySingleValueAllowed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIp
(String fieldName, InetAddress value) void
void
void
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 dimensions, so we can save re-computing the UTF-8 encoding.void
addUnsignedLong
(String fieldName, long value)
-
Constructor Details
-
OnlySingleValueAllowed
public OnlySingleValueAllowed()
-
-
Method Details
-
addString
Description copied from interface:DocumentDimensions
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 dimensions, so we can save re-computing the UTF-8 encoding.- Specified by:
addString
in interfaceDocumentDimensions
-
addString
- Specified by:
addString
in interfaceDocumentDimensions
-
addIp
- Specified by:
addIp
in interfaceDocumentDimensions
-
addLong
- Specified by:
addLong
in interfaceDocumentDimensions
-
addUnsignedLong
- Specified by:
addUnsignedLong
in interfaceDocumentDimensions
-