public abstract class CommonSimilarUnitPairsFile extends DuplicityCheckingFile
SimilarUnitPairsFile,
AllSimilarUnitPairsFile
and SimilarUnitPairsTempFile.
All classes represent the "similar unit pairs" file used in duplicity checking algorithm.| Modifier and Type | Method and Description |
|---|---|
String |
dump()
Dumps the file with its content to String.
|
long |
getPermID() |
boolean |
hasTheSameContent(DuplicityCheckingFile file)
Checks if two files has the same content.
|
void |
remove(Set<DocumentUnitID> toRemove)
Removes all occurences of documents given in the set from the file.
|
String |
toString() |
delete, getFilename, getLocation, getOut, hasTheSameContentpublic String toString()
toString in class DuplicityCheckingFilepublic String dump()
public boolean hasTheSameContent(DuplicityCheckingFile file)
file - the second file to be testedpublic void remove(Set<DocumentUnitID> toRemove) throws IOException
toRemove - set of document ids to removeIOExceptionpublic long getPermID()
Copyright © 2016 Egothor. All Rights Reserved.