Package de.hybris.deltadetection
Class StreamConfiguration
java.lang.Object
de.hybris.deltadetection.StreamConfiguration
- All Implemented Interfaces:
BatchCreationData,Serializable
Allows to define which items should be included into the stream.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStreamConfiguration(String streamId) Constructs the configuration -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamConfigurationReturns excluded type codes.Returns item selector which will be used to select itemsReturns parameters to use in the final queryReturns stream identifierReturns version value used by streamwithDataHubColumns(String dataHubColumns) withDataHubType(String dataHubType) withExcludedTypeCodes(Set<ComposedTypeModel> excludedTypeCodes) withImpExHeader(String impExHeader) withItemSelector(String itemSelector) Allows to set selector for given stream.withItemTypeCode(String itemTypeCode) withParameters(Map<String, Object> parameters) Allows to provide parameters for change detection querywithSyncType(String syncType) withVersionValue(String versionValue) Allows to specify a version value used to detect changes in the stream.
-
Constructor Details
-
StreamConfiguration
Constructs the configuration- Parameters:
streamId- required stream identifier- Throws:
NullPointerException- ifstreamIdisnull
-
-
Method Details
-
buildFor
-
withItemSelector
Allows to set selector for given stream. Think of a selector as a part of a where clause of the flexible search query.- Parameters:
itemSelector- selector to use by the stream- Returns:
- the same configuration object
-
withItemTypeCode
-
withDataHubColumns
-
withImpExHeader
-
withSyncType
-
withParameters
Allows to provide parameters for change detection query- Parameters:
parameters- parameters which will be passed to final query- Returns:
- the same configuration object
- Throws:
NullPointerException- ifparametersisnull
-
withExcludedTypeCodes
-
withVersionValue
Allows to specify a version value used to detect changes in the stream. This value will be used in select clause of the flexible search query.- Parameters:
versionValue-- Returns:
- the same configuration object
-
withDataHubType
-
getStreamId
Returns stream identifier- Returns:
- stream identifier
-
getParameters
Returns parameters to use in the final query- Returns:
- parameters
-
getItemSelector
Returns item selector which will be used to select items- Returns:
- item selector
-
getVersionValue
Returns version value used by stream- Returns:
- version value
-
getExcludedTypeCodes
Returns excluded type codes.- Returns:
- set of excluded type codes
-
getItemTypeCode
-
getDataHubType
-
getImpExHeader
-
getDataHubColumns
-
getSyncType
-