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 TypeMethodDescriptionvoidaddIp(String fieldName, InetAddress value) voidvoidvoidThis 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.voidaddUnsignedLong(String fieldName, long value)
-
Constructor Details
-
OnlySingleValueAllowed
public OnlySingleValueAllowed()
-
-
Method Details
-
addString
Description copied from interface:DocumentDimensionsThis 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:
addStringin interfaceDocumentDimensions
-
addString
- Specified by:
addStringin interfaceDocumentDimensions
-
addIp
- Specified by:
addIpin interfaceDocumentDimensions
-
addLong
- Specified by:
addLongin interfaceDocumentDimensions
-
addUnsignedLong
- Specified by:
addUnsignedLongin interfaceDocumentDimensions
-