@Component public class SolrRepresentationIndexer extends Object
| Constructor and Description |
|---|
SolrRepresentationIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignment(String versionId,
eu.europeana.cloud.common.model.CompoundDataSetId dataSetId,
int partitionKey)
Adds assignment between data set and a representation version.
|
void |
insertRepresentation(eu.europeana.cloud.common.model.Representation representation,
int partitionKey)
Indexes representation version (new or updated).
|
void |
removeAssignment(String cloudId,
String representationName,
eu.europeana.cloud.common.model.CompoundDataSetId dataSetId,
int partitionKey)
Removes assignment between data set and representation (regardless its
version).
|
void |
removeAssignmentsFromDataSet(eu.europeana.cloud.common.model.CompoundDataSetId compoundDataSetId,
int partitionKey)
Removes data set assignments from ALL representation.
|
void |
removeRecordRepresentations(String cloudId,
int partitionKey)
Removes all record's representations with all their versions from index.
|
void |
removeRepresentation(String cloudId,
String representationName,
int partitionKey)
Removes all representation's versions from index.
|
void |
removeRepresentationVersion(String versionId,
int partitionKey)
Removes representation version from index.
|
public void insertRepresentation(eu.europeana.cloud.common.model.Representation representation,
int partitionKey)
representation - representation version.partitionKey - using to route message to different partitions.public void removeRepresentationVersion(String versionId, int partitionKey)
versionId - representation version idpartitionKey - using to route message to different partitions.public void removeRepresentation(String cloudId, String representationName, int partitionKey)
cloudId - record idrepresentationName - representation's schemapartitionKey - using to route message to different partitions.public void removeRecordRepresentations(String cloudId, int partitionKey)
cloudId - record idpartitionKey - using to route message to different partitions.public void removeAssignment(String cloudId, String representationName, eu.europeana.cloud.common.model.CompoundDataSetId dataSetId, int partitionKey)
cloudId - record idrepresentationName - representation's schemadataSetId - dataset id with owner's (provider's) id.partitionKey - using to route message to different partitions.public void addAssignment(String versionId, eu.europeana.cloud.common.model.CompoundDataSetId dataSetId, int partitionKey)
versionId - representation version id.dataSetId - dataset id with owner's (provider's) id.partitionKey - using to route message to different partitions.public void removeAssignmentsFromDataSet(eu.europeana.cloud.common.model.CompoundDataSetId compoundDataSetId,
int partitionKey)
compoundDataSetId - dataset id with owner's (provider's) id.partitionKey - using to route message to different partitions.Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.