K - Key typepublic abstract class FieldArgs<K> 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<K,T extends FieldArgs<K>,B extends FieldArgs.Builder<K,T,B>>
Base builder for field arguments.
|
| Modifier and Type | Field and Description |
|---|---|
protected Optional<K> |
as |
protected boolean |
indexEmpty |
protected boolean |
indexMissing |
protected K |
name |
protected boolean |
noIndex |
protected boolean |
sortable |
protected boolean |
unNormalizedForm |
| Constructor and Description |
|---|
FieldArgs() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(CommandArgs<K,?> args)
Build the field arguments into the command.
|
protected abstract void |
buildTypeSpecificArgs(CommandArgs<K,?> args)
Add type-specific arguments to the command.
|
Optional<K> |
getAs()
Get the field alias.
|
abstract String |
getFieldType()
Returns the field type.
|
K |
getName()
Get the field name.
|
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 K name
protected boolean sortable
protected boolean unNormalizedForm
protected boolean noIndex
protected boolean indexEmpty
protected boolean indexMissing
public abstract String getFieldType()
public K getName()
public boolean isSortable()
public boolean isUnNormalizedForm()
public boolean isNoIndex()
public boolean isIndexEmpty()
public boolean isIndexMissing()
public final void build(CommandArgs<K,?> args)
args - the command arguments to modifyprotected abstract void buildTypeSpecificArgs(CommandArgs<K,?> args)
args - the command arguments to modifyCopyright © 2025 lettuce.io. All rights reserved.