Class JSONToLowerParser
- java.lang.Object
-
- org.apache.druid.java.util.common.parsers.JSONToLowerParser
-
@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 Summary
Constructors Constructor Description JSONToLowerParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Iterable<String> fieldNames, Iterable<String> exclude)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>
getFieldNames()
Deprecated.Returns the fieldNames that we expect to see in parsed Maps, if known, or null otherwise.Map<String,Object>
parseToMap(String input)
Deprecated.Parse a String into a Map.void
setFieldNames(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, wait
-
Methods inherited from interface org.apache.druid.java.util.common.parsers.Parser
startFileFromBeginning
-
-
-
-
Method Detail
-
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 interfaceParser<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 interfaceParser<String,Object>
-
-