public class CommonCrawlFormatJettinson extends AbstractCommonCrawlFormat
conf, content, inLinks, jsonArray, keyPrefix, LOG, metadata, reverseKey, reverseKeyValue, simpleDateFormat, url| Constructor and Description |
|---|
CommonCrawlFormatJettinson(String url,
Content content,
Metadata metadata,
Configuration nutchConf,
CommonCrawlConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeArray(String key,
boolean nested,
boolean newline) |
protected void |
closeObject(String key) |
protected String |
generateJson() |
protected void |
startArray(String key,
boolean nested,
boolean newline) |
protected void |
startObject(String key) |
protected void |
writeArrayValue(String value) |
protected void |
writeKeyNull(String key) |
protected void |
writeKeyValue(String key,
String value) |
close, getImported, getInLinks, getJsonData, getJsonData, getJsonData, getKey, getMethod, getRequestAccept, getRequestAcceptEncoding, getRequestAcceptLanguage, getRequestContactEmail, getRequestContactName, getRequestHostAddress, getRequestHostName, getRequestRobots, getRequestSoftware, getRequestUserAgent, getResponseAddress, getResponseContent, getResponseContentEncoding, getResponseContentType, getResponseDate, getResponseHostName, getResponseServer, getResponseStatus, getTimestamp, getUrl, setInLinkspublic CommonCrawlFormatJettinson(String url, Content content, Metadata metadata, Configuration nutchConf, CommonCrawlConfig config) throws IOException
IOExceptionprotected void writeKeyValue(String key, String value) throws IOException
writeKeyValue in class AbstractCommonCrawlFormatIOExceptionprotected void writeKeyNull(String key) throws IOException
writeKeyNull in class AbstractCommonCrawlFormatIOExceptionprotected void startArray(String key, boolean nested, boolean newline) throws IOException
startArray in class AbstractCommonCrawlFormatIOExceptionprotected void closeArray(String key, boolean nested, boolean newline) throws IOException
closeArray in class AbstractCommonCrawlFormatIOExceptionprotected void writeArrayValue(String value) throws IOException
writeArrayValue in class AbstractCommonCrawlFormatIOExceptionprotected void startObject(String key) throws IOException
startObject in class AbstractCommonCrawlFormatIOExceptionprotected void closeObject(String key) throws IOException
closeObject in class AbstractCommonCrawlFormatIOExceptionprotected String generateJson() throws IOException
generateJson in class AbstractCommonCrawlFormatIOExceptionCopyright © 2021 The Apache Software Foundation