K - Key typepublic class NumericFieldArgs<K> extends FieldArgs<K>
Numeric fields are used to store non-textual, countable values. They can hold integer or floating-point values. Numeric fields are sortable, meaning you can perform range-based queries and retrieve documents based on specific numeric conditions. For example, you can search for documents with a price between a certain range or retrieve documents with a specific rating value.
| Modifier and Type | Class and Description |
|---|---|
static class |
NumericFieldArgs.Builder<K>
Builder for
NumericFieldArgs. |
as, indexEmpty, indexMissing, name, noIndex, sortable, unNormalizedForm| Constructor and Description |
|---|
NumericFieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
static <K> NumericFieldArgs.Builder<K> |
builder()
Create a new
NumericFieldArgs using the builder pattern. |
protected void |
buildTypeSpecificArgs(CommandArgs<K,?> args)
Add type-specific arguments to the command.
|
String |
getFieldType()
Returns the field type.
|
build, getAs, getName, isIndexEmpty, isIndexMissing, isNoIndex, isSortable, isUnNormalizedFormpublic static <K> NumericFieldArgs.Builder<K> builder()
NumericFieldArgs using the builder pattern.K - Key typeNumericFieldArgs.Builderpublic String getFieldType()
FieldArgsgetFieldType in class FieldArgs<K>protected void buildTypeSpecificArgs(CommandArgs<K,?> args)
FieldArgsbuildTypeSpecificArgs in class FieldArgs<K>args - the command arguments to modifyCopyright © 2025 lettuce.io. All rights reserved.