public interface CommonCrawlFormat
Modifier and Type | Method and Description |
---|---|
void |
close()
Optional method that could be implemented if the actual format needs some
close procedure.
|
String |
getJsonData() |
String |
getJsonData(String url,
Content content,
Metadata metadata)
Returns a string representation of the JSON structure of the URL content
|
String |
getJsonData(String url,
Content content,
Metadata metadata,
ParseData parseData)
Returns a string representation of the JSON structure of the URL content
takes into account the parsed metadata about the URL
|
String getJsonData() throws IOException
mapAll
- If true
maps all metdata on the JSON structure.IOException
String getJsonData(String url, Content content, Metadata metadata) throws IOException
url
- content
- metadata
- IOException
String getJsonData(String url, Content content, Metadata metadata, ParseData parseData) throws IOException
url
- content
- metadata
- IOException
void close()
Copyright © 2015 The Apache Software Foundation