Class JSONToLowerParser

java.lang.Object
org.apache.druid.java.util.common.parsers.JSONToLowerParser
All Implemented Interfaces:
Parser<String,Object>

@Deprecated public class JSONToLowerParser extends Object implements Parser<String,Object>
Deprecated.
TODO: There is a lot of code copy and pasted from JSONParser. JSONParser needs to be rewritten to actually take a map transformer instead of what it is doing now. For the purposes of moving forward in 0.7.0, I am going to have a different parser to lower case data from JSON. This code needs to be removed the next time we touch java-util.
  • Constructor Details

    • JSONToLowerParser

      public JSONToLowerParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Iterable<String> fieldNames, Iterable<String> exclude)
      Deprecated.
  • Method Details

    • getFieldNames

      public List<String> getFieldNames()
      Deprecated.
      Description copied from interface: Parser
      Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise. Deprecated; Parsers should not, in general, be expected to know what fields they will return.
      Specified by:
      getFieldNames in interface Parser<String,Object>
    • setFieldNames

      public void setFieldNames(Iterable<String> fieldNames)
      Deprecated.
      Description copied from interface: Parser
      Set the fieldNames that you expect to see in parsed Maps. Deprecated; Parsers should not, in general, be expected to know what fields they will return. Some individual types of parsers do need to know (like a TSV parser) and those parsers have their own way of setting field names.
      Specified by:
      setFieldNames in interface Parser<String,Object>
    • parseToMap

      public Map<String,Object> parseToMap(String input)
      Deprecated.
      Description copied from interface: Parser
      Parse a String into a Map. The result can be null which means the given input string will be ignored.
      Specified by:
      parseToMap in interface Parser<String,Object>