Class JSONToLowerParser
java.lang.Object
org.apache.druid.java.util.common.parsers.JSONToLowerParser
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 Summary
ConstructorsConstructorDescriptionJSONToLowerParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Iterable<String> fieldNames, Iterable<String> exclude) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise.parseToMap(String input) Deprecated.Parse a String into a Map.voidsetFieldNames(Iterable<String> fieldNames) Deprecated.Set the fieldNames that you expect to see in parsed Maps.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.java.util.common.parsers.Parser
startFileFromBeginning
-
Constructor Details
-
Method Details
-
getFieldNames
Deprecated.Description copied from interface:ParserReturns 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:
getFieldNamesin interfaceParser<String,Object>
-
setFieldNames
Deprecated.Description copied from interface:ParserSet 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:
setFieldNamesin interfaceParser<String,Object>
-
parseToMap
Deprecated.Description copied from interface:ParserParse a String into a Map. The result can be null which means the given input string will be ignored.- Specified by:
parseToMapin interfaceParser<String,Object>
-