Package org.opensextant.data.social
Class TweetLoader
java.lang.Object
org.opensextant.data.social.TweetLoader
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
The internals of parsing a JSON file of tweets. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
readJSONByLine
(File jsonFile, JSONListener ingester) To read gzip/JSON files one row of JSON at a time.
-
Field Details
-
MAX_ERROR_COUNT
public static int MAX_ERROR_COUNTThe internals of parsing a JSON file of tweets. You provide the receiver logic using JSONListener:myListener = JSONListener(){ readObject( String or JSON map); } TweetLoader.readJSONByLine(file, myListener)
-
-
Constructor Details
-
TweetLoader
public TweetLoader()
-
-
Method Details
-
readJSONByLine
To read gzip/JSON files one row of JSON at a time. This will tolerate up to MAX_ERROR_COUNT for parsing data files...- Parameters:
jsonFile
-ingester
-- Throws:
IOException
-