|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.dir.Group org.egothor.dir.Tanker org.egothor.dir.TankerImpl org.egothor.dir.TankerImplSecure org.egothor.duplicity.algorithm.TankerImplDuplicityChecker
public class TankerImplDuplicityChecker
This object encapsulates standard TankerImplSecure and adds duplicity checking ability.
Field Summary | |
---|---|
protected DuplicityChecker |
dc
|
Fields inherited from class org.egothor.dir.TankerImplSecure |
---|
localDocDB, localTanker |
Fields inherited from class org.egothor.dir.Group |
---|
cache |
Constructor Summary | |
---|---|
TankerImplDuplicityChecker()
|
Method Summary | |
---|---|
void |
append(BarrelReader barrelReader)
Appends a reader to this tanker. |
java.util.Set<DocumentUnitID> |
append(BarrelReader barrelReader,
boolean omitDuplicates,
boolean visualizeDuplicities,
boolean printDuplicitiesToCsv)
Appends a reader to this tanker's duplicity checker. |
void |
appendOnlyToDC(BarrelReader barrelReader)
|
void |
close()
Closes this tanker. |
void |
commit()
Commits all the changes. |
java.util.HashMap<java.lang.Long,java.lang.Boolean> |
commitWithResults()
Performes a commit and returns information about the whole process. |
void |
destroy()
Description of the Method |
TankerImplSecure |
getDuplicatesIndex()
|
java.lang.String |
getDuplicatesIndexDir()
|
java.lang.String |
getDuplicityCheckingMainDir()
|
java.lang.String |
getDuplicityCheckingReportDir()
|
java.lang.String |
getDuplicityCheckingTempDir()
|
boolean |
hasDuplicityCheckingAbility()
|
void |
initializeTankerSecure(java.lang.String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor,
java.lang.String lockServerConfigFilename,
int indexConstPeriodOfTime)
Initializations of the tanker. |
void |
initializeTankerSecure(java.lang.String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor,
java.lang.String lockServerConfigFilename,
int indexConstPeriodOfTime,
long seedDC)
Initializations of the tanker. |
boolean |
isDirty()
Test whether this Tanker has been modified. |
boolean |
removeDoc(long id)
Deprecated. |
void |
removeDoc(long id,
int revision)
|
Methods inherited from class org.egothor.dir.TankerImplSecure |
---|
commitEmit, deleted, elements, elementsSecure, expand, expandDocMetadata, expandDocMetadataSecure, forEach, getBitmap, getCWI, getIListMeta, getMeta, getRootVersionID, initializeTankerSecure, iterate, loadState, open, openIList, openIListSecure, openSecure, optimize, query, query, querySecure, querySecure, reloadIndex, setBitmap, size |
Methods inherited from class org.egothor.dir.TankerImpl |
---|
commitEmitEnd, initializeTanker, initializeTanker, removeDoc |
Methods inherited from class org.egothor.dir.Tanker |
---|
finalize, initialize |
Methods inherited from class org.egothor.dir.Group |
---|
getCache, initialize, initializeCache, initializeCache, initializeCache, initializeCache, resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DuplicityChecker dc
Constructor Detail |
---|
public TankerImplDuplicityChecker()
Method Detail |
---|
public void initializeTankerSecure(java.lang.String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor, java.lang.String lockServerConfigFilename, int indexConstPeriodOfTime) throws java.io.IOException, com.sleepycat.db.DatabaseException
TankerImplSecure
null
, then file locking is used. It must be in
java.util.Properties format.
initializeTankerSecure
in class TankerImplSecure
java.io.IOException
com.sleepycat.db.DatabaseException
public void initializeTankerSecure(java.lang.String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor, java.lang.String lockServerConfigFilename, int indexConstPeriodOfTime, long seedDC) throws java.io.IOException, com.sleepycat.db.DatabaseException
null
, then file locking is used. It must be in
java.util.Properties format.
indexDir
- repo
- useBerkeleyGP
- MTE
- capacity
- mergeFactor
- lockServerConfigFilename
- indexConstPeriodOfTime
- seedDC
- seed to be used for the duplicity checker
java.io.IOException
com.sleepycat.db.DatabaseException
public java.util.Set<DocumentUnitID> append(BarrelReader barrelReader, boolean omitDuplicates, boolean visualizeDuplicities, boolean printDuplicitiesToCsv)
public void append(BarrelReader barrelReader)
TankerImplSecure
append
in interface BarrelWriter
append
in class TankerImplSecure
barrelReader
- the Barrel to addpublic void appendOnlyToDC(BarrelReader barrelReader)
public void commit()
TankerImplSecure
commit
in interface Barrel
commit
in class TankerImplSecure
public java.util.HashMap<java.lang.Long,java.lang.Boolean> commitWithResults()
TankerImplSecure
commitWithResults
in class TankerImplSecure
public void destroy()
TankerImpl
destroy
in interface Barrel
destroy
in class TankerImplSecure
public void close()
TankerImplSecure
In case of muliple thread sharing one instance of the tanker this method
should be used everytime an TankerImplSecure.openSecure()
method is called and
synchronized by user as follows:
synchronized (tanker) { try { tanker.openSecure(); ... } finally { tanker.close(); } }
close
in interface Barrel
close
in interface BarrelWriter
close
in class TankerImplSecure
public boolean isDirty()
Tanker
isDirty
in class TankerImplSecure
public boolean hasDuplicityCheckingAbility()
public java.lang.String getDuplicityCheckingMainDir()
public java.lang.String getDuplicityCheckingReportDir()
public java.lang.String getDuplicityCheckingTempDir()
public java.lang.String getDuplicatesIndexDir()
public TankerImplSecure getDuplicatesIndex()
@Deprecated public boolean removeDoc(long id)
Group
removeDoc
in interface Barrel
removeDoc
in class TankerImplSecure
id
- the document to remove
public void removeDoc(long id, int revision)
removeDoc
in class TankerImplSecure
id
- uid of the documentrevision
- revision of the document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |