T
- The type of values contained in the batchpublic interface MaskingBatch<T>
MaskingAlgorithm.maskBatch(com.delphix.masking.api.plugin.MaskingBatch<T>)
method. The type paramter T must correspond with one of the
classes mentioned in MaskingAlgorithm.MaskingType
Batch masking typically proceeds as follows:
size()
.getValue(int)
with index values
from 0 to (size - 1).setValue(int, T)
with index
values from 0 to (size - 1).setValue(int, T)
passing
the value index and the error that occurredModifier and Type | Method and Description |
---|---|
T |
getValue(int index)
Get the value to be masked at a particular index from the batch.
|
void |
setError(int index,
MaskingException e)
Set the error that occurred when masking a particular item in a batch.
|
void |
setValue(int index,
T value)
Set the masking result at a particular index in the batch.
|
int |
size()
Get the size of the batch.
|
@Nullable T getValue(int index)
index
- The index of the value to get, in the range of 0 to size - 1void setValue(int index, @Nullable T value)
index
- The index of the value to set, in the range of 0 to size - 1value
- The masked valuevoid setError(int index, @Nonnull MaskingException e)
MaskingAlgorithm.maskBatch(com.delphix.masking.api.plugin.MaskingBatch<T>)
.index
- The index of value that was being masked when the error occurred, in the range
of 0 to size - 1e
- The error that occurred.int size()