Class HashPathElement
java.lang.Object
com.bazaarvoice.jolt.common.pathelement.BasePathElement
com.bazaarvoice.jolt.common.pathelement.HashPathElement
- All Implemented Interfaces:
MatchablePathElement
,PathElement
For use on the LHS, allows the user to specify an explicit string to write out.
Aka given a input that is boolean, would want to write something out other than "true" / "false".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the canonical form of this PathElement.match
(String dataKey, WalkedPath walkedPath) See if this PathElement matches the given dataKey.Methods inherited from class com.bazaarvoice.jolt.common.pathelement.BasePathElement
getRawKey, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.bazaarvoice.jolt.common.pathelement.PathElement
getRawKey
-
Field Details
-
keyValue
-
-
Constructor Details
-
HashPathElement
-
-
Method Details
-
getCanonicalForm
Description copied from interface:PathElement
Get the canonical form of this PathElement. Really only interesting for the Reference Path element, where it will expand "invalid input: '&'" to "invalid input: '&'0(0)".- Specified by:
getCanonicalForm
in interfacePathElement
- Returns:
- canonical String version of this PathElement
-
match
Description copied from interface:MatchablePathElement
See if this PathElement matches the given dataKey. If it does not match, this method returns null. If this PathElement does match, it returns a LiteralPathElement with subKeys filled in.- Specified by:
match
in interfaceMatchablePathElement
- Parameters:
dataKey
- String key value from the input datawalkedPath
- "up the tree" list of LiteralPathElements, that may be used by this key as it is computing its match- Returns:
- null or a matched LiteralPathElement
-