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, size
initializeTanker, initializeTanker
getCache, initializeCache, initializeCache, initializeCache, initializeCache, query, resolve
public void initializeTankerSecure(String indexDir, DataRepository repo, boolean useBerkeleyGP, boolean MTE, int capacity, int mergeFactor, String lockServerConfigFilename, int indexConstPeriodOfTime) throws IOException
TankerImplSecure
null
, then file locking is used. It must be in
java.util.Properties format.initializeTankerSecure
in class TankerImplSecure
IOException
public 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 checkerIOException
public 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)
barrelReader
- public void commit()
TankerImplSecure
commit
in interface Barrel
commit
in class TankerImplSecure
public HashMap<Long,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 AutoCloseable
close
in interface Barrel
close
in interface BarrelWriter
close
in class TankerImplSecure
public boolean isDirty()
Tanker
isDirty
in class TankerImplSecure
public boolean hasDuplicityCheckingAbility()
public String getDuplicityCheckingMainDir()
public String getDuplicityCheckingReportDir()
public String getDuplicityCheckingTempDir()
public String getDuplicatesIndexDir()
public TankerImplSecure getDuplicatesIndex()
@Deprecated public boolean removeDoc(long id)
Group
removeDoc
in interface Barrel
removeDoc
in class TankerImplSecure
id
- the document to removepublic void removeDoc(long id, int revision)
removeDoc
in class TankerImplSecure
id
- uid of the documentrevision
- revision of the documentCopyright © 2016 Egothor. All Rights Reserved.