|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.duplicity.datastructure.DocumentPermutatedMins
public class DocumentPermutatedMins
Represents container for the informations about duplicities, that are stored in DocumentData class. There are stored records about minimum values for pairs of duplicity checking units and permutations. The duplicity checking unit can be document, paragraph or sentence. Example of stored data:
permutation unit minimum 1 12#1 33 1 13#1 31 1 13#2 10 2 13#1 45
Constructor Summary | |
---|---|
DocumentPermutatedMins()
|
|
DocumentPermutatedMins(DocumentPermutatedMins old)
|
Method Summary | |
---|---|
void |
addMinForPermutation(long permID,
TextUnitID unitID,
long min)
Adds minimum for given permutation and duplicity checking unit. |
void |
close()
|
void |
commit()
Computes the number of text units in the document. |
boolean |
equals(java.lang.Object obj)
|
java.util.Collection<UnitPermutatedMin> |
getMinsForPermutation(long permID)
Returns collection of all UnitPermutatedMin objects for given permutation. |
int |
getNumberOfTextUnits()
Returns the number of text units in the document. |
int |
hashCode()
|
void |
releaseMinsForPermutation(long permID)
Removes from the internal data structure informations about given permutation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DocumentPermutatedMins()
public DocumentPermutatedMins(DocumentPermutatedMins old)
Method Detail |
---|
public java.util.Collection<UnitPermutatedMin> getMinsForPermutation(long permID)
UnitPermutatedMin(12#1 33) UnitPermutatedMin(13#1 31) UnitPermutatedMin(13#2 10)
permID
- identificator of the permutation
public void addMinForPermutation(long permID, TextUnitID unitID, long min)
permID
- permutation idunitID
- duplicity checking idmin
- minimum valuepublic void releaseMinsForPermutation(long permID)
permID
- permutation to be releasedpublic int getNumberOfTextUnits()
public void commit() throws DuplicityCheckingException
getNumberOfTextUnits()
method.
DuplicityCheckingException
- if the object data field is emptypublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |