Class HopCount.Question
- java.lang.Object
-
- org.apache.manifoldcf.crawler.jobs.HopCount.Question
-
- Enclosing class:
- HopCount
protected static class HopCount.Question extends java.lang.ObjectA class describing a document identifier and a link type, to be used in looking up the appropriate node in the hash.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdocumentIdentifierHashDocument identifier.protected java.lang.StringlinkTypeLink type.
-
Constructor Summary
Constructors Constructor Description Question(java.lang.String documentIdentifierHash, java.lang.String linkType)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)The 'question' is uniquely described by linktype, document identifier, and maximum hop count.java.lang.StringgetDocumentIdentifierHash()Get the document identifier.java.lang.StringgetLinkType()Get the link type.inthashCode()Hash must agree with equals, above.
-
-
-
Method Detail
-
getDocumentIdentifierHash
public java.lang.String getDocumentIdentifierHash()
Get the document identifier.
-
getLinkType
public java.lang.String getLinkType()
Get the link type.
-
equals
public boolean equals(java.lang.Object o)
The 'question' is uniquely described by linktype, document identifier, and maximum hop count. However, there is good reason to want to merge answers where possible that have the same linktype and document identifier, so that's what we key on for hashing.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Hash must agree with equals, above.- Overrides:
hashCodein classjava.lang.Object
-
-