Package com.attivio.util
Class TokenUtils
- java.lang.Object
-
- com.attivio.util.TokenUtils
-
public final class TokenUtils extends java.lang.ObjectUtility methods for working withTokenListobjects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenUtils.PositionBufferExpert Use Only: Utility class for buffering and processing tokens indexed at the same position.static classTokenUtils.TokenBufferExpert Use Only: represents aTokenand associated positional data as part of aTokenUtils.PositionBuffer.
-
Constructor Summary
Constructors Constructor Description TokenUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>extractScopes(java.lang.String scopeName, IngestFieldValue value)ExtractscopeNamevalues fromvalue.static java.util.List<java.lang.String>extractScopes(java.lang.String scopeName, TokenList tokens, java.lang.String text)Extract substrings oftextforscopeNamefromtokens.static TokenListfilterTokens(IngestFieldValue value, java.util.Locale locale)Get all tokens forlocale.
-
-
-
Method Detail
-
filterTokens
public static TokenList filterTokens(IngestFieldValue value, java.util.Locale locale)
Get all tokens forlocale.NOTE: all returned tokens will be cloned.
- Since:
- 5.5.0 patch 95
-
extractScopes
public static java.util.List<java.lang.String> extractScopes(java.lang.String scopeName, IngestFieldValue value)ExtractscopeNamevalues fromvalue.
-
extractScopes
public static java.util.List<java.lang.String> extractScopes(java.lang.String scopeName, TokenList tokens, java.lang.String text)Extract substrings oftextforscopeNamefromtokens.
-
-