public class MyTISMGpsDevice extends org.compass.gps.device.support.parallel.AbstractParallelGpsDevice implements IndexingListenerI, org.compass.gps.PassiveMirrorGpsDevice
| Constructor and Description |
|---|
MyTISMGpsDevice(DBManLocalI _dbm,
int _fetchSize,
int _maxThreads) |
MyTISMGpsDevice(DBManLocalI _dbm,
int _fetchSize,
int _maxThreads,
boolean _indexDeletedBOs) |
MyTISMGpsDevice(DBManLocalI _dbm,
int _fetchSize,
int _maxThreads,
boolean _indexDeletedBOs,
SchemaMappingBuilder _mappingBuilder) |
| Modifier and Type | Method and Description |
|---|---|
void |
boHandled(BO _bo,
org.compass.core.CompassIndexSession _session)
From interface IndexingListenerI; called by
MyTISMIndexEntitiesIndexer.index(...) for every BO that was saved to or
deleted from the FTS index.
|
static java.util.Set |
copyIndex(org.compass.core.Compass _compassFrom,
org.compass.core.Compass _compassTo)
Copies the index of one Compass instance to another.
|
org.compass.gps.device.support.parallel.IndexEntity[] |
doGetIndexEntities()
Overwritten from AbstractParallelGpsDevice.
|
org.compass.gps.device.support.parallel.IndexEntitiesIndexer |
doGetIndexEntitiesIndexer()
Overwritten from AbstractParallelGpsDevice.
|
org.compass.gps.spi.CompassGpsInterfaceDevice |
getGpsID()
Convenience method that returns the CompassGpsInterfaceDevice associated
with this GpsDevice.
|
long |
getHighestBPId() |
MyTISMIndexEntitiesIndexer |
getIndexEntitiesIndexer() |
java.util.Date |
getIndexLmod(EntityI _entity)
From interface IndexingListenerI.
|
MetaDataHolder |
getMetaData()
Retrieves and returns the custom meta data stored in the index by the MyTISM
fulltext system; null if none could be found.
|
void |
index(org.compass.gps.IndexPlan _indexPlan) |
void |
indexingFinished(EntityI _entity,
org.compass.core.CompassIndexSession _session,
int _cSaved,
int _cDeleted,
int _cError)
From interface IndexingListenerI; called by
MyTISMIndexEntitiesIndexer.index(...) when all (relevant) BOs of EntityI
_entity have sucessfully indexed.
|
void |
indexingStarted(EntityI _entity,
org.compass.core.CompassIndexSession _session)
From interface IndexingListenerI; called by
MyTISMIndexEntitiesIndexer.index(...) before starting to index the BOs of
EntityI _entity.
|
boolean |
isMirrorDataChanges() |
java.util.Set |
removeObsoleteSubIndexes(org.compass.core.Compass _compassFrom,
SchemaVsIndexDiff _diff)
Deletes sub indexes which are no longer needed.
|
void |
safeSetMaxId(long _id) |
void |
saveMetaData(org.compass.core.CompassIndexSession _session)
Stores the MetaDataHolder data in the index using the given session.
|
void |
setMirrorDataChanges(boolean $17) |
void |
updateIndexPositionMetadata(org.compass.core.CompassIndexSession _session,
long _lastBPId) |
setIndexEntitiesPartitioner, setParallelIndexExecutor, startbuildMessage, getGps, getName, injectGps, isFilteredForIndex, isPerformingIndexOperation, isRunning, refresh, setFilteredEntitiesForIndex, setName, shouldMirrorDataChanges, stoppublic MyTISMGpsDevice(DBManLocalI _dbm, int _fetchSize, int _maxThreads)
_dbm - the DBManLocalI instance with which to load the BOs._fetchSize - the "chunk size" which determines how many BOs (of a
given Entity) are loaded from the DB for indexing; should not be set to
high to avoid queries running to long and being automatically aborted.
Default is 50.000._maxThreads - the maximum number of concurrent Threads that is used
when indexing. Should not be set to high, to avoid the connection limit
of the database being exceeded. Default is number of CPUs initially
available to the JVM._indexDeletedBOs - if false deleted BOs will not be loaded and indexed
and if necessary be removed from the index; if true (the default)
all BOs will be loaded and indexed.public MyTISMGpsDevice(DBManLocalI _dbm, int _fetchSize, int _maxThreads, boolean _indexDeletedBOs)
public MyTISMGpsDevice(DBManLocalI _dbm, int _fetchSize, int _maxThreads, boolean _indexDeletedBOs, SchemaMappingBuilder _mappingBuilder)
public org.compass.gps.spi.CompassGpsInterfaceDevice getGpsID()
public org.compass.gps.device.support.parallel.IndexEntitiesIndexer doGetIndexEntitiesIndexer()
doGetIndexEntitiesIndexer in class org.compass.gps.device.support.parallel.AbstractParallelGpsDevicepublic MyTISMIndexEntitiesIndexer getIndexEntitiesIndexer()
public void index(org.compass.gps.IndexPlan _indexPlan)
throws org.compass.gps.CompassGpsException
index in interface org.compass.gps.CompassGpsDeviceindex in class org.compass.gps.device.support.parallel.AbstractParallelGpsDeviceorg.compass.gps.CompassGpsExceptionpublic long getHighestBPId()
public void safeSetMaxId(long _id)
public MetaDataHolder getMetaData()
public java.util.Set removeObsoleteSubIndexes(org.compass.core.Compass _compassFrom,
SchemaVsIndexDiff _diff)
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the Compass instance does not use
a LuceneSearchEngineIndexManager.public static java.util.Set copyIndex(org.compass.core.Compass _compassFrom,
org.compass.core.Compass _compassTo)
throws java.lang.IllegalStateException
_compassFrom - the Compass instance whose index should be copied._compassTo - the Compass instance to which the index should be copied.java.lang.IllegalStateException - if one of the Compass instances does not use
a LuceneSearchEngineIndexManager.public org.compass.gps.device.support.parallel.IndexEntity[] doGetIndexEntities()
throws org.compass.gps.CompassGpsException
doGetIndexEntities in class org.compass.gps.device.support.parallel.AbstractParallelGpsDeviceorg.compass.gps.CompassGpsExceptionpublic void indexingStarted(EntityI _entity, org.compass.core.CompassIndexSession _session)
indexingStarted in interface IndexingListenerIpublic void boHandled(BO _bo, org.compass.core.CompassIndexSession _session)
boHandled in interface IndexingListenerIpublic void indexingFinished(EntityI _entity, org.compass.core.CompassIndexSession _session, int _cSaved, int _cDeleted, int _cError)
indexingFinished in interface IndexingListenerIpublic void updateIndexPositionMetadata(org.compass.core.CompassIndexSession _session,
long _lastBPId)
updateIndexPositionMetadata in interface IndexingListenerIpublic java.util.Date getIndexLmod(EntityI _entity)
getIndexLmod in interface IndexingListenerIpublic void saveMetaData(org.compass.core.CompassIndexSession _session)
public boolean isMirrorDataChanges()
isMirrorDataChanges in interface org.compass.gps.MirrorDataChangesGpsDevicepublic void setMirrorDataChanges(boolean $17)
setMirrorDataChanges in interface org.compass.gps.MirrorDataChangesGpsDeviceCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.