public class FilterUpdate
extends java.lang.Object
Filter
implementation specific. The
exact semantics of the op-codes are also defined by the Filter
implementation. See the filter documentation for details.
Not all Filters support FilterUpdates.
Modifier and Type | Class and Description |
---|---|
static class |
FilterUpdate.Instruction
Filter update instruction.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<FilterUpdate.Instruction> |
instructions |
static int |
OP_ADD |
static int |
OP_REMOVE |
static int |
OP_SET |
Constructor and Description |
---|
FilterUpdate() |
FilterUpdate(int capacity)
Create filter update an pre-allocate space for instructions.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldValue(int fieldId,
java.lang.Object value)
Add instruction to add a value to an existing field.
|
java.util.List<FilterUpdate.Instruction> |
getInstructions()
Get filter update instructions.
|
void |
removeFieldValue(int fieldId,
java.lang.Object value)
Add instruction to remove a value from an existing field.
|
void |
setField(int fieldId,
java.lang.Object value)
Add instruction to set a field.
|
public static final int OP_SET
public static final int OP_ADD
public static final int OP_REMOVE
protected java.util.List<FilterUpdate.Instruction> instructions
public FilterUpdate()
public FilterUpdate(int capacity)
capacity
- Number of instructionspublic void setField(int fieldId, java.lang.Object value)
fieldId
- Field identifier.value
- Field value.public void addFieldValue(int fieldId, java.lang.Object value)
fieldId
- Field identifier.value
- Field value.public void removeFieldValue(int fieldId, java.lang.Object value)
fieldId
- Field identifier.value
- Field value.public java.util.List<FilterUpdate.Instruction> getInstructions()