|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.crawler.jobs.HopCount.Answer
protected static class HopCount.Answer
This class represents an answer - which consists both of an answer value, and also the dependencies of that answer (i.e. the add dependencies and delete dependencies).
| Field Summary | |
|---|---|
protected int |
answer
The answer value |
protected java.util.HashMap |
deleteDependencies
This is the set of delete dependencies. |
| Constructor Summary | |
|---|---|
HopCount.Answer()
Constructor. |
|
HopCount.Answer(HopCount.Answer other)
|
|
HopCount.Answer(int value)
|
|
HopCount.Answer(int answer,
DeleteDependency[] deleteDeps)
Set an answer from initial data. |
|
| Method Summary | |
|---|---|
int |
countDeleteDependencies()
Get the number of delete dependencies |
void |
duplicate(HopCount.Answer other)
Copy the answer value from another answer object |
int |
getAnswer()
Get the current answer value. |
java.util.Iterator |
getDeleteDependencies()
Iterate over the delete dependencies. |
boolean |
hasDependency(DeleteDependency dep)
Check if a delete dependency is present |
void |
initialize(int value)
Initialize this answer object. |
void |
merge(HopCount.Answer childAnswer,
boolean isIncrementingLink,
java.lang.String linkType,
java.lang.String parentIDHash,
java.lang.String childIDHash)
Update the current answer, using a child link's information and answer. |
void |
setAnswer(int answer,
DeleteDependency[] deleteDeps)
Set an answer from initial data. |
protected void |
setAnswerFromChild(int newAnswer,
java.util.HashMap childDeleteDependencies,
java.lang.String linkType,
java.lang.String parentIDHash,
java.lang.String childIDHash)
Set answer from child |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int answer
protected java.util.HashMap deleteDependencies
| Constructor Detail |
|---|
public HopCount.Answer()
public HopCount.Answer(HopCount.Answer other)
public HopCount.Answer(int value)
public HopCount.Answer(int answer,
DeleteDependency[] deleteDeps)
| Method Detail |
|---|
public int getAnswer()
public int countDeleteDependencies()
public java.util.Iterator getDeleteDependencies()
public boolean hasDependency(DeleteDependency dep)
public void initialize(int value)
public void duplicate(HopCount.Answer other)
public void merge(HopCount.Answer childAnswer,
boolean isIncrementingLink,
java.lang.String linkType,
java.lang.String parentIDHash,
java.lang.String childIDHash)
childAnswer - is the current answer found for the child.isIncrementingLink - is true if this link is the kind being counted, and thus increments
the hopcount.linkType - is the type of THIS link (for building appropriate delete dependency).parentIDHash - is the hash of the parent document id for THIS link.childIDHash - is the hash of the child document id for THIS link.
protected void setAnswerFromChild(int newAnswer,
java.util.HashMap childDeleteDependencies,
java.lang.String linkType,
java.lang.String parentIDHash,
java.lang.String childIDHash)
public void setAnswer(int answer,
DeleteDependency[] deleteDeps)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||