|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.duplicity.algorithm.PermutatedMinsFiller
public abstract class PermutatedMinsFiller
Fills the DocumentPermutatedMins with values corrensponding
to the given sequence of tokens.
This class takes care to allways return
the child appropriate for working on the right duplicity checking level
(according to the Constants.CHECK_DUPLICITY_LEVEL
).
Constructor Summary | |
---|---|
protected |
PermutatedMinsFiller(long seed)
Creates the permutations. |
Method Summary | |
---|---|
void |
computeDocumentMins(DocumentPermutatedMins result,
Sequence<Token> terms,
long documentUID,
int documentDBRevision)
Computes the permutated mins values for given sequence of tokens of a document and fills it into the result under the identificator documentID. |
static PermutatedMinsFiller |
createNew()
Ensures that the right child is created according to the duplicity checking algorithm level set in Constants.CHECK_DUPLICITY_LEVEL . |
static PermutatedMinsFiller |
createNew(long seed)
Ensures that the right child is created according to the duplicity checking algorithm level set in Constants.CHECK_DUPLICITY_LEVEL . |
long |
getSeed()
|
protected abstract void |
insertMins(DocumentPermutatedMins result,
long documentUID,
int documentDBRevision,
short paragraph,
short sentenceInParagraph,
long[] mins)
Inserts all mins to result. |
protected abstract boolean |
newUnit(short lastParagraph,
int lastSentence,
short paragraph,
int sentence)
Returns true, if a new unit on given duplicity checking algorithm level occured. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PermutatedMinsFiller(long seed)
Method Detail |
---|
public static PermutatedMinsFiller createNew(long seed)
Constants.CHECK_DUPLICITY_LEVEL
.
public static PermutatedMinsFiller createNew()
Constants.CHECK_DUPLICITY_LEVEL
.
public long getSeed()
public void computeDocumentMins(DocumentPermutatedMins result, Sequence<Token> terms, long documentUID, int documentDBRevision) throws DuplicityCheckingException
result
- instance of DocumentPermutatedMins to be filled with resultsterms
- sequence of tokens of the documentdocumentUID
- identificator of the documentdocumentDBRevision
- revision number of the document in the document database
DuplicityCheckingException
- if the created DocumentPermutatedMins is emptyprotected abstract void insertMins(DocumentPermutatedMins result, long documentUID, int documentDBRevision, short paragraph, short sentenceInParagraph, long[] mins)
result
- DocumentPermutatedMins to which the values will be addeddocumentUID
- identificator of the documentdocumentDBRevision
- revision number of the document in the document databaseparagraph
- ordinal number of paragraphsentenceInParagraph
- ordinal number of sentence in the paragraphmins
- minimumsprotected abstract boolean newUnit(short lastParagraph, int lastSentence, short paragraph, int sentence)
lastParagraph
- lastSentence
- paragraph
- sentence
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |