Class STHeadingScanner

java.lang.Object
io.nosqlbench.nb.spectest.loaders.STHeadingScanner
All Implemented Interfaces:
Supplier<CharSequence>

public class STHeadingScanner extends Object implements Supplier<CharSequence>
  • Constructor Details

    • STHeadingScanner

      public STHeadingScanner(String delimiter)
  • Method Details

    • toString

      public String toString(String delim)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • index

      public STHeadingScanner index()
      If this method is called, then the heading index is incremented to track enumerations (represented as numeric indices) of headings within a common flow of elements
      Returns:
    • update

      public STHeadingScanner update(Object object)
      Update the state of the heading scanner. If the object is a path, then the heading list is cleared and the new path is set. If the object is a Heading node, then the heading list is updated according to the level of the provided heading. All heading levels deeper than the provided one are removed from the list first. Any other object type is ignored silently.
      Parameters:
      object - Any object which might be a Heading or Path
      Returns:
      this HeadingScanner for method chaining
    • get

      public CharSequence get()
      Specified by:
      get in interface Supplier<CharSequence>