public class CommonCrawlFormatSimple extends AbstractCommonCrawlFormat
conf, content, inLinks, jsonArray, keyPrefix, LOG, metadata, reverseKey, reverseKeyValue, simpleDateFormat, url| Constructor and Description |
|---|
CommonCrawlFormatSimple(java.lang.String url,
Content content,
Metadata metadata,
Configuration nutchConf,
CommonCrawlConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeArray(java.lang.String key,
boolean nested,
boolean newline) |
protected void |
closeObject(java.lang.String key) |
protected java.lang.String |
generateJson() |
protected void |
startArray(java.lang.String key,
boolean nested,
boolean newline) |
protected void |
startObject(java.lang.String key) |
protected void |
writeArrayValue(java.lang.String value) |
protected void |
writeKeyNull(java.lang.String key) |
protected void |
writeKeyValue(java.lang.String key,
java.lang.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 CommonCrawlFormatSimple(java.lang.String url,
Content content,
Metadata metadata,
Configuration nutchConf,
CommonCrawlConfig config)
throws java.io.IOException
java.io.IOExceptionprotected void writeKeyValue(java.lang.String key,
java.lang.String value)
throws java.io.IOException
writeKeyValue in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected void writeKeyNull(java.lang.String key)
throws java.io.IOException
writeKeyNull in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected void startArray(java.lang.String key,
boolean nested,
boolean newline)
throws java.io.IOException
startArray in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected void closeArray(java.lang.String key,
boolean nested,
boolean newline)
throws java.io.IOException
closeArray in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected void writeArrayValue(java.lang.String value)
writeArrayValue in class AbstractCommonCrawlFormatprotected void startObject(java.lang.String key)
throws java.io.IOException
startObject in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected void closeObject(java.lang.String key)
throws java.io.IOException
closeObject in class AbstractCommonCrawlFormatjava.io.IOExceptionprotected java.lang.String generateJson()
throws java.io.IOException
generateJson in class AbstractCommonCrawlFormatjava.io.IOExceptionCopyright © 2019 The Apache Software Foundation