| java.lang.Object de.anomic.plasma.plasmaSnippetCache
plasmaSnippetCache | public class plasmaSnippetCache (Code) | | |
Inner Class :public static class TextSnippet | |
Inner Class :public static class MediaSnippet | |
Method Summary | |
public static ArrayList<MediaSnippet> | computeImageSnippets(plasmaParserDocument document, Set<String> queryhashes) | public static ArrayList<MediaSnippet> | computeMediaSnippets(plasmaParserDocument document, Set<String> queryhashes, int mediatype) | public static boolean | existsInCache(yacyURL url, Set<String> queryhashes) | public static String | failConsequences(TextSnippet snippet, String eventID) | public static Object[] | getResource(yacyURL url, boolean fetchOnline, int socketTimeout, boolean forText) | public static void | init(plasmaParser parserx, serverLog logx) | public static plasmaParserDocument | parseDocument(yacyURL url, long contentLength, InputStream resourceStream) | public static plasmaParserDocument | parseDocument(yacyURL url, long contentLength, InputStream resourceStream, IResourceInfo docInfo) | public static plasmaParserDocument | retrieveDocument(yacyURL url, boolean fetchOnline, int timeout, boolean forText) Tries to load and parse a resource specified by it's URL. | public static ArrayList<MediaSnippet> | retrieveMediaSnippets(yacyURL url, Set<String> queryhashes, int mediatype, boolean fetchOnline, int timeout) | public static TextSnippet | retrieveTextSnippet(indexURLEntry.Components comp, Set<String> queryhashes, boolean fetchOnline, boolean pre, int snippetMaxLength, int timeout, int maxDocLen) | public static void | storeToCache(String wordhashes, String urlhash, String snippet) |
ERROR_NO_HASH_GIVEN | final public static int ERROR_NO_HASH_GIVEN(Code) | | |
ERROR_NO_MATCH | final public static int ERROR_NO_MATCH(Code) | | |
ERROR_PARSER_FAILED | final public static int ERROR_PARSER_FAILED(Code) | | |
ERROR_PARSER_NO_LINES | final public static int ERROR_PARSER_NO_LINES(Code) | | |
ERROR_RESOURCE_LOADING | final public static int ERROR_RESOURCE_LOADING(Code) | | |
ERROR_SOURCE_LOADING | final public static int ERROR_SOURCE_LOADING(Code) | | |
SOURCE_CACHE | final public static int SOURCE_CACHE(Code) | | |
SOURCE_FILE | final public static int SOURCE_FILE(Code) | | |
SOURCE_METADATA | final public static int SOURCE_METADATA(Code) | | |
SOURCE_WEB | final public static int SOURCE_WEB(Code) | | |
failConsequences | public static String failConsequences(TextSnippet snippet, String eventID)(Code) | | |
getResource | public static Object[] getResource(yacyURL url, boolean fetchOnline, int socketTimeout, boolean forText)(Code) | | Parameters: url - Parameters: fetchOnline - Parameters: socketTimeout - an Object array containing |
parseDocument | public static plasmaParserDocument parseDocument(yacyURL url, long contentLength, InputStream resourceStream, IResourceInfo docInfo) throws ParserException(Code) | | Parse the resource
Parameters: url - the URL of the resource Parameters: contentLength - the contentLength of the resource Parameters: resourceStream - the resource body as stream Parameters: docInfo - metadata about the resource the extracted data throws: ParserException - |
retrieveDocument | public static plasmaParserDocument retrieveDocument(yacyURL url, boolean fetchOnline, int timeout, boolean forText)(Code) | | Tries to load and parse a resource specified by it's URL.
If the resource is not stored in cache and if fetchOnline is set the
this function tries to download the resource from web.
Parameters: url - the URL of the resource Parameters: fetchOnline - specifies if the resource should be loaded from web if it'as not available in the cache the parsed document as plasmaParserDocument |
retrieveMediaSnippets | public static ArrayList<MediaSnippet> retrieveMediaSnippets(yacyURL url, Set<String> queryhashes, int mediatype, boolean fetchOnline, int timeout)(Code) | | |
retrieveTextSnippet | public static TextSnippet retrieveTextSnippet(indexURLEntry.Components comp, Set<String> queryhashes, boolean fetchOnline, boolean pre, int snippetMaxLength, int timeout, int maxDocLen)(Code) | | |
|
|