@StableMinor(version="12.4", sinceVersion="8.1") public class DummySourceBigDataPersister<S extends Source<?>> extends Object implements ISourceBigDataPersister<S>
ISourceBigDataPersister
implementation that never persist anything.Constructor and Description |
---|
DummySourceBigDataPersister() |
Modifier and Type | Method and Description |
---|---|
void |
addContextDocuments(String sourceId,
String contextId)
Adds all
documents corresponding to the given source and context to the portal big data
repository. |
void |
addDocuments(S source,
Collection<? extends ISourceData> data)
Adds
documents to the portal big data repository for the given source data entries. |
void |
addDocuments(S source,
ISourceData... data)
Adds
documents to the portal big data repository for the given source data entries. |
void |
deleteBigData(S source)
Deletes all structure stored in the portal big data repository relative to a source.
|
void |
deleteContextDocuments(String sourceId,
String contextId)
Deletes
documents from the portal big data repository for the specified source in a context. |
void |
deleteDocuments(S source,
Collection<String> itemIds)
Deletes
documents from the portal big data repository that corresponds to the data with the
given primary key values. |
void |
deleteDocuments(S source,
String... itemIds)
Deletes
documents from the portal big data repository that corresponds to the data with the
given primary key values. |
void |
initBigData(S source)
Initializes the big data repository with elements specifics to a source.
|
void |
updateBigData(S source)
Updates the big data repository according to a source.
|
public void initBigData(S source)
ISourceBigDataPersister
This method is called at some moment between the service registration and its use, or when the source big data
will be recreated (after ISourceBigDataPersister.deleteBigData(S)
is called to delete anything related to the source).
This method will usually create the document types
that ISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
for the source
will use.
initBigData
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.public void updateBigData(S source)
ISourceBigDataPersister
This method is called at some moment between the service registration and its use.
This method will usually update the document types
for the source.
updateBigData
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.public void deleteBigData(S source)
ISourceBigDataPersister
This method is called when a source will cease to exist or when recreating the big data for a source.
This method must delete elements created by ISourceBigDataPersister.initBigData(S)
and documents added by ISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
.
This method will usually delete the document types
created in ISourceBigDataPersister.initBigData(S)
and used
by ISourceBigDataPersister.addDocuments(S, lumis.doui.source.ISourceData...)
, which will remove related documents in cascade.
deleteBigData
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.public void addContextDocuments(String sourceId, String contextId)
ISourceBigDataPersister
documents
corresponding to the given source and context to the portal big data
repository.
This method is usually called when re-indexing a source after its documents have been deleted.
addContextDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
sourceId
- the source identifier.contextId
- the context identifier. Usually a service or service instance identifier.public void addDocuments(S source, ISourceData... data)
ISourceBigDataPersister
documents
to the portal big data repository for the given source data entries.addDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.data
- the source's data to be used to generate the documents.public void addDocuments(S source, Collection<? extends ISourceData> data)
ISourceBigDataPersister
documents
to the portal big data repository for the given source data entries.addDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.data
- the source's data to be used to generate the documents.public void deleteContextDocuments(String sourceId, String contextId)
ISourceBigDataPersister
documents
from the portal big data repository for the specified source in a context.deleteContextDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
sourceId
- the source identifier.contextId
- the context identifier.public void deleteDocuments(S source, String... itemIds)
ISourceBigDataPersister
documents
from the portal big data repository that corresponds to the data with the
given primary key values.deleteDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.itemIds
- the source data primary key values.public void deleteDocuments(S source, Collection<String> itemIds)
ISourceBigDataPersister
documents
from the portal big data repository that corresponds to the data with the
given primary key values.deleteDocuments
in interface ISourceBigDataPersister<S extends Source<?>>
source
- the source.itemIds
- the source data primary key values.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.