Package com.attivio.sdk.scanner
Interface IncrementalDataSourceScanner
-
public interface IncrementalDataSourceScanner
Interface for scanners to implement if they want to support incremental scanning. The implementation of the interface provides standard configuration and#reset()
in the Administration UI. However, the scanner must implement incremental logic usingIngestionHistoryApi
to persist the state of the scan between runs. See theSampleIncrementalDataSourceScanner
SDK example.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isIncrementalDeletes()
boolean
isIncrementalModeActivated()
Whether or not this scanner should run in incremental mode.void
reset(java.lang.String connectorName)
Resets any state being maintained by this scanner.void
setIncrementalDeletes(boolean autoDelete)
Specifies whether to delete Attivio documents when their underlying data source documents were deleted.void
setIncrementalModeActivated(boolean incrementalModeActivated)
Specifies whether or not this scanner should run in incremental mode.
-
-
-
Method Detail
-
isIncrementalDeletes
boolean isIncrementalDeletes()
- Returns:
- true if document auto delete is enabled.
-
setIncrementalDeletes
void setIncrementalDeletes(boolean autoDelete)
Specifies whether to delete Attivio documents when their underlying data source documents were deleted. This setting is only valid ifsetIncrementalModeActivated(boolean)
is set to true.- Parameters:
autoDelete
- if true, will automatically delete documents that no longer exist.
-
reset
void reset(java.lang.String connectorName) throws AttivioException
Resets any state being maintained by this scanner.- Parameters:
connectorName
-- Throws:
AttivioException
-
isIncrementalModeActivated
boolean isIncrementalModeActivated()
Whether or not this scanner should run in incremental mode.- Returns:
- current state of incremental mode activation.
-
setIncrementalModeActivated
void setIncrementalModeActivated(boolean incrementalModeActivated)
Specifies whether or not this scanner should run in incremental mode.- Parameters:
incrementalModeActivated
- a toggle value indicating whether or not this scanner should run in incremental mode.
-
-