public final class LimitTokenFilter extends TokenFilter
| Constructor and Description |
|---|
LimitTokenFilter(String name)
Constructor of
TokenFilter. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
areAllTokensConsumed()
Get the consumeAllTokens property: A value indicating whether all tokens
from the input must be consumed even if maxTokenCount is reached.
|
Integer |
getMaxTokenCount()
Get the maxTokenCount property: The maximum number of tokens to produce.
|
LimitTokenFilter |
setAllTokensConsumed(Boolean allTokensConsumed)
Set the consumeAllTokens property: A value indicating whether all tokens
from the input must be consumed even if maxTokenCount is reached.
|
LimitTokenFilter |
setMaxTokenCount(Integer maxTokenCount)
Set the maxTokenCount property: The maximum number of tokens to produce.
|
getNamepublic LimitTokenFilter(String name)
TokenFilter.name - The name of the token filter. It must only contain letters, digits,
spaces, dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.public Integer getMaxTokenCount()
public LimitTokenFilter setMaxTokenCount(Integer maxTokenCount)
maxTokenCount - the maxTokenCount value to set.public Boolean areAllTokensConsumed()
public LimitTokenFilter setAllTokensConsumed(Boolean allTokensConsumed)
allTokensConsumed - the consumeAllTokens value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.