Module org.elasticsearch.xcore
Class TransformStrings
java.lang.Object
org.elasticsearch.xpack.core.transform.utils.TransformStrings
Yet Another String utilities class.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the givenidhas a valid length.static boolean
-
Field Details
-
ID_LENGTH_LIMIT
public static final int ID_LENGTH_LIMIT- See Also:
-
-
Method Details
-
isValidId
-
hasValidLengthForId
Checks if the givenidhas a valid length. We keep IDs in a length shorter or equal thanID_LENGTH_LIMITin order to avoid unfriendly errors when storing docs with more than 512 bytes.- Parameters:
id- the id- Returns:
trueif the id has a valid length
-