Changeset 31360
- Timestamp:
- 2017-01-26T23:50:19+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/PerVolumeCatalogLangSequenceFileMap.java
r31359 r31360 2 2 3 3 import java.io.IOException; 4 5 import org.apache.hadoop.io.Text; 4 6 import org.apache.spark.api.java.function.Function; 5 7 import org.json.JSONObject; 6 8 7 class PerVolumeCatalogLangSequenceFileMap implements Function< String, String>9 class PerVolumeCatalogLangSequenceFileMap implements Function<Text, String> 8 10 { 9 11 private static final long serialVersionUID = 1L; … … 22 24 } 23 25 24 public String call( Stringjson_text) throws IOException26 public String call(Text json_text) throws IOException 25 27 { 26 28 String catalog_lang = null; 27 29 28 30 try { 29 JSONObject extracted_feature_record = new JSONObject(json_text );31 JSONObject extracted_feature_record = new JSONObject(json_text.toString()); 30 32 31 33 String volume_id = extracted_feature_record.getString("id");
Note:
See TracChangeset
for help on using the changeset viewer.