Example #1
0
  /** @return the number of distinct articles that this article links to */
  public int getDistinctLinksOutCount() {

    DbPageLinkCounts lc = env.getDbPageLinkCounts().retrieve(id);

    if (lc == null) return 0;
    else return lc.getDistinctLinksOut();
  }
Example #2
0
  /** @return the total number of links that are made to this article */
  public int getTotalLinksInCount() {

    DbPageLinkCounts lc = env.getDbPageLinkCounts().retrieve(id);

    if (lc == null) return 0;
    else return lc.getTotalLinksIn();
  }