public interface RecordPath
| Modifier and Type | Method and Description |
|---|---|
static RecordPath |
compile(java.lang.String path)
Compiles a RecordPath from the given text
|
RecordPathResult |
evaluate(Record record)
Evaluates the RecordPath against the given Record, returning a RecordPathResult that contains
a FieldValue for each field that matches
|
RecordPathResult |
evaluate(Record record,
FieldValue contextNode)
Evaluates a RecordPath against the given context node.
|
java.lang.String |
getPath()
Returns the textual representation of the RecordPath
|
boolean |
isAbsolute()
Indicates whether the RecordPath is an Absolute Path (starts with a '/' character) or a Relative Path (starts with a '.' character).
|
java.lang.String getPath()
RecordPathResult evaluate(Record record)
record - the Record to evaluateRecordPathResult evaluate(Record record, FieldValue contextNode)
evaluate(Record) and then have a Relative RecordPath evaluated against
the results. This method will throw an Exception if this RecordPath is an Absolute RecordPath.record - the Record to evaluatecontextNode - the context node that represents where in the Record the 'current node' or 'context node' isboolean isAbsolute()
true if the RecordPath is an Absolute Path, false if the RecordPath is a Relative Pathstatic RecordPath compile(java.lang.String path) throws RecordPathException
path - the textual representation of the RecordPathRecordPathException - if the given text is not a valid RecordPath