public class TankerImplDuplicityChecker extends TankerImplSecure
| Constructor and Description |
|---|
TankerImplDuplicityChecker() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(BarrelReader barrelReader)
Appends a reader to this tanker.
|
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.
|
HashMap<Long,Boolean> |
commitWithResults()
Performes a commit and returns information about the whole process.
|
void |
destroy()
Description of the Method
|
TankerImplSecure |
getDuplicatesIndex() |
String |
getDuplicatesIndexDir() |
String |
getDuplicityCheckingMainDir() |
String |
getDuplicityCheckingReportDir() |
String |
getDuplicityCheckingTempDir() |
boolean |
hasDuplicityCheckingAbility() |
void |
initializeTankerSecure(String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor,
String lockServerConfigFilename,
int indexConstPeriodOfTime)
Initializations of the tanker.
|
void |
initializeTankerSecure(String indexDir,
DataRepository repo,
boolean useBerkeleyGP,
boolean MTE,
int capacity,
int mergeFactor,
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) |
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, sizeinitializeTanker, initializeTankergetCache, initializeCache, initializeCache, initializeCache, initializeCache, query, resolvepublic void initializeTankerSecure(String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor, String lockServerConfigFilename, int indexConstPeriodOfTime) throws IOException
TankerImplSecurenull, then file locking is used. It must be in
java.util.Properties format.initializeTankerSecure in class TankerImplSecureIOExceptionpublic void initializeTankerSecure(String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor, String lockServerConfigFilename, int indexConstPeriodOfTime, long seedDC) throws IOException
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 checkerIOExceptionpublic Set<DocumentUnitID> append(BarrelReader barrelReader, boolean omitDuplicates, boolean visualizeDuplicities, boolean printDuplicitiesToCsv)
public void append(BarrelReader barrelReader)
TankerImplSecureappend in interface BarrelWriterappend in class TankerImplSecurebarrelReader - the Barrel to addpublic void appendOnlyToDC(BarrelReader barrelReader)
barrelReader - public void commit()
TankerImplSecurecommit in interface Barrelcommit in class TankerImplSecurepublic HashMap<Long,Boolean> commitWithResults()
TankerImplSecurecommitWithResults in class TankerImplSecurepublic void destroy()
TankerImpldestroy in interface Barreldestroy in class TankerImplSecurepublic 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 AutoCloseableclose in interface Barrelclose in interface BarrelWriterclose in class TankerImplSecurepublic boolean isDirty()
TankerisDirty in class TankerImplSecurepublic boolean hasDuplicityCheckingAbility()
public String getDuplicityCheckingMainDir()
public String getDuplicityCheckingReportDir()
public String getDuplicityCheckingTempDir()
public String getDuplicatesIndexDir()
public TankerImplSecure getDuplicatesIndex()
@Deprecated public boolean removeDoc(long id)
GroupremoveDoc in interface BarrelremoveDoc in class TankerImplSecureid - the document to removepublic void removeDoc(long id,
int revision)
removeDoc in class TankerImplSecureid - uid of the documentrevision - revision of the documentCopyright © 2016 Egothor. All Rights Reserved.