APISonar


net.yacy.cora.federate.solr.connector.SolrConnector.LoadTimeURL.date

> net > yacy > cora > federate > solr > connector > SolrConnector > LoadTimeURL > date
net APIs yacy APIs cora APIs federate APIs solr APIs connector APIs SolrConnector APIs LoadTimeURL APIs date APIs

Example 1
public long getLoadTime(final String urlHash) throws IOException {
        if (urlHash == null) return -1l;
        SolrConnector.LoadTimeURL md = this.getDefaultConnector().getLoadTimeURL(urlHash);
        if (md == null) return -1l;
        return md.date;
    }
Example 2
public HarvestProcess urlExists(final String hash) throws IOException {
        LoadTimeURL md = this.index.fulltext().getDefaultConnector().getLoadTimeURL(hash);
        if (md != null && md.date >= 0) return HarvestProcess.LOADED;
        HarvestProcess hp = this.crawlQueues.exists(ASCII.getBytes(hash));
        if (hp != null) return hp;
        return null; // todo: can also be in error
    }