Class EmptyArrayParser

java.lang.Object
org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
org.apache.drill.exec.store.easy.json.parser.EmptyArrayParser
All Implemented Interfaces:
ElementParser
Direct Known Subclasses:
EmptyArrayFieldParser

public abstract class EmptyArrayParser extends AbstractElementParser
Represents an empty array: the case where the parser has seen only [], but no array elements which would indicate the type. Resolves to a specific type upon presentation of the first element. If that element is null, we must still choose a type to record nulls.

This array listener holds no element since none has been created yet; we use this only while we see empty arrays.

  • Field Details

    • key

      protected final String key
  • Constructor Details

  • Method Details

    • parse

      public void parse(TokenIterator tokenizer)
    • resolve

      protected abstract ElementParser resolve(TokenIterator tokenizer)
      Replace this parser with a new parser based on the current parse context.