Package com.bazaarvoice.jolt.defaultr
Class ArrayKey
- java.lang.Object
-
- com.bazaarvoice.jolt.defaultr.Key
-
- com.bazaarvoice.jolt.defaultr.ArrayKey
-
public class ArrayKey extends Key
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.bazaarvoice.jolt.defaultr.Key
Key.KeyPrecedenceComparator
-
-
Field Summary
Fields Modifier and Type Field Description private int
keyInt
private java.util.Collection<java.lang.Integer>
keyInts
-
Fields inherited from class com.bazaarvoice.jolt.defaultr.Key
children, keyStrings, literalValue, rawKey
-
-
Constructor Summary
Constructors Constructor Description ArrayKey(java.lang.String jsonKey, java.lang.Object spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyChild(java.lang.Object container)
Apply this Key to the defaultee.private void
applyLiteralKeyToContainer(java.lang.Integer literalIndex, java.util.List<java.lang.Object> container)
private java.util.Collection<java.lang.Integer>
determineMatchingContainerKeys(java.util.List<java.lang.Object> container)
protected int
getLiteralIntKey()
-
Methods inherited from class com.bazaarvoice.jolt.defaultr.Key
applyChildren, createOutputContainerObject, getOp, getOrCount, getOutputArraySize, isArrayOutput, parseSpec
-
-
-
-
Method Detail
-
getLiteralIntKey
protected int getLiteralIntKey()
- Specified by:
getLiteralIntKey
in classKey
-
applyChild
protected void applyChild(java.lang.Object container)
Description copied from class:Key
Apply this Key to the defaultee. If this Key is a WildCard key, this may apply to many entries in the container.- Specified by:
applyChild
in classKey
-
applyLiteralKeyToContainer
private void applyLiteralKeyToContainer(java.lang.Integer literalIndex, java.util.List<java.lang.Object> container)
-
determineMatchingContainerKeys
private java.util.Collection<java.lang.Integer> determineMatchingContainerKeys(java.util.List<java.lang.Object> container)
-
-