public class StandardFieldValue extends Object implements FieldValue
| Modifier and Type | Field and Description |
|---|---|
private RecordField |
field |
private Optional<FieldValue> |
parent |
private Object |
value |
| Constructor and Description |
|---|
StandardFieldValue(Object value,
RecordField field,
FieldValue parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RecordField |
getField() |
Optional<FieldValue> |
getParent() |
Optional<Record> |
getParentRecord() |
private Optional<Record> |
getParentRecord(Optional<FieldValue> fieldValueOption) |
Object |
getValue() |
int |
hashCode() |
String |
toString() |
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 void |
updateValue(Object newValue,
RecordField field) |
protected static FieldValue |
validateParentRecord(FieldValue parent) |
private final Object value
private final RecordField field
private final Optional<FieldValue> parent
public StandardFieldValue(Object value, RecordField field, FieldValue parent)
public Object getValue()
getValue in interface FieldValuepublic RecordField getField()
getField in interface FieldValuepublic Optional<FieldValue> getParent()
getParent in interface FieldValueprotected static FieldValue validateParentRecord(FieldValue parent)
private Optional<Record> getParentRecord(Optional<FieldValue> fieldValueOption)
public Optional<Record> getParentRecord()
getParentRecord in interface FieldValuepublic void updateValue(Object newValue)
FieldValueupdateValue in interface FieldValuenewValue - the new value to set on the record fieldpublic void updateValue(Object newValue, DataType dataType)
FieldValueRecord.incorporateInactiveFields().updateValue in interface FieldValuenewValue - the value to set for the fielddataType - the data type to use if the Record's schema does not already include this fieldprivate void updateValue(Object newValue, RecordField field)
Copyright © 2023 Apache NiFi Project. All rights reserved.