Class LengthStep<S>

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterator<Traverser.Admin<Integer>>, Step<S,​Integer>

    public final class LengthStep<S>
    extends ScalarMapStep<S,​Integer>
    Reference implementation for length() step, a mid-traversal step which returns the length of the incoming string traverser. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then an IllegalArgumentException will be thrown.
    Author:
    David Bechberger (http://bechberger.com), Yang Xia (http://github.com/xiazcy)
    See Also:
    Serialized Form