public abstract class FieldArgs extends Object
This class contains common options shared by all field types. Specific field types should extend this class and add their type-specific options.
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldArgs.Builder<T extends FieldArgs,B extends FieldArgs.Builder<T,B>>
Base builder for field arguments.
|
| Modifier and Type | Field and Description |
|---|---|
protected Optional<String> |
as |
protected boolean |
indexEmpty |
protected boolean |
indexMissing |
protected String |
name |
protected boolean |
noIndex |
protected boolean |
sortable |
protected boolean |
unNormalizedForm |
| Constructor and Description |
|---|
FieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<?,?> args)
Build the field arguments into the command.
|
protected abstract void |
buildTypeSpecificArgs(CommandArgs<?,?> args)
Add type-specific arguments to the command.
|
Optional<String> |
getAs()
Get the field alias.
|
abstract String |
getFieldType()
Returns the field type.
|
String |
getName()
Get the indexed field: a hash field name or a JSONPath expression.
|
boolean |
isIndexEmpty()
Check if the field indexes empty values.
|
boolean |
isIndexMissing()
Check if the field indexes missing values.
|
boolean |
isNoIndex()
Check if the field is not indexed.
|
boolean |
isSortable()
Check if the field is sortable.
|
boolean |
isUnNormalizedForm()
Check if the field uses unnormalized form.
|
protected String name
protected boolean sortable
protected boolean unNormalizedForm
protected boolean noIndex
protected boolean indexEmpty
protected boolean indexMissing
public abstract String getFieldType()
public String getName()
public boolean isSortable()
public boolean isUnNormalizedForm()
public boolean isNoIndex()
public boolean isIndexEmpty()
public boolean isIndexMissing()
public final void build(CommandArgs<?,?> args)
args - the command arguments to modifyprotected abstract void buildTypeSpecificArgs(CommandArgs<?,?> args)
args - the command arguments to modifyCopyright © 2026 lettuce.io. All rights reserved.