public class ArrayIndexFieldValue extends StandardFieldValue
| Modifier and Type | Field and Description |
|---|---|
private int |
index |
| Constructor and Description |
|---|
ArrayIndexFieldValue(Object value,
RecordField field,
FieldValue parent,
int index) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getArrayIndex() |
int |
hashCode() |
void |
updateValue(Object newValue)
Updates the record to which the field belongs, so that it now has the given value.
|
void |
updateValue(Object newValue,
DataType dataType)
Updates the record to which the field belongs, so that it now has the given value.
|
private static FieldValue |
validateParent(FieldValue parent) |
getField, getParent, getParentRecord, getValue, toString, validateParentRecordpublic ArrayIndexFieldValue(Object value, RecordField field, FieldValue parent, int index)
private static FieldValue validateParent(FieldValue parent)
public int getArrayIndex()
public void updateValue(Object newValue)
FieldValueupdateValue in interface FieldValueupdateValue in class StandardFieldValuenewValue - the new value to set on the record fieldpublic void updateValue(Object newValue, DataType dataType)
FieldValueRecord.incorporateInactiveFields().updateValue in interface FieldValueupdateValue in class StandardFieldValuenewValue - the value to set for the fielddataType - the data type to use if the Record's schema does not already include this fieldpublic int hashCode()
hashCode in class StandardFieldValuepublic boolean equals(Object obj)
equals in class StandardFieldValueCopyright © 2023 Apache NiFi Project. All rights reserved.