public interface IngestMapper
An Interface Ingest Mapper that indexes transaction ids to catalog transaction ids and catlaog ids
Modifier and Type | Method and Description |
---|---|
void |
deleteAllMappingsForCatalog(String catalogId) |
void |
deleteAllMappingsForCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId) |
void |
deleteTransactionIdMapping(TransactionId<?> catalogTransactionId,
String catalogId) |
Set<String> |
getCatalogIds(TransactionId<?> catalogServiceTransactionId)
Get all the Catalog URNs for which the given TransactionId was mapped
|
CatalogReceipt |
getCatalogReceipt(TransactionId<?> catalogServiceTransactionId,
String catalogId) |
TransactionId<?> |
getCatalogServiceTransactionId(TransactionId<?> catalogTransactionId,
String catalogId)
Get the CatalogService TransactionId that was mapped to the given Catalog
URN and Catalog TransactionId
|
TransactionId<?> |
getCatalogTransactionId(TransactionId<?> catalogServiceTransactionId,
String catalogId)
Get the Catalog TransactionId that was mapped to the given Catalog ID
and CatalogService TransactionId
|
Set<TransactionId<?>> |
getPageOfCatalogTransactionIds(IndexPager indexPager,
String catalogId) |
boolean |
hasCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId)
Verify if the given CatalogService TransactionId has been stored in a
mapping
storeTransactionIdMapping(String, TransactionId>,
TransactionId>) |
void |
storeTransactionIdMapping(TransactionId<?> catalogServiceTransactionId,
TransactionIdFactory catalogServiceTransactionIdFactory,
CatalogReceipt catalogReceipt,
TransactionIdFactory catalogTransactionIdFactory)
Maps the three arguments to each other so any of the others can be
retrieved via one of the other arguments
|
void storeTransactionIdMapping(TransactionId<?> catalogServiceTransactionId, TransactionIdFactory catalogServiceTransactionIdFactory, CatalogReceipt catalogReceipt, TransactionIdFactory catalogTransactionIdFactory) throws CatalogRepositoryException
catalogId
- The ID that uniquely represents a catalogcatalogServiceTransactionId
- TransactionId generated by the CatalogServicecatalogTransactionId
- The TransactionId used by the Catalog given (maybe the same as
catalogServiceTransactionId, maybe different)CatalogRepositoryException
- Any errorSet<TransactionId<?>> getPageOfCatalogTransactionIds(IndexPager indexPager, String catalogId) throws CatalogRepositoryException
CatalogRepositoryException
void deleteTransactionIdMapping(TransactionId<?> catalogTransactionId, String catalogId) throws CatalogRepositoryException
CatalogRepositoryException
void deleteAllMappingsForCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId) throws CatalogRepositoryException
CatalogRepositoryException
void deleteAllMappingsForCatalog(String catalogId) throws CatalogRepositoryException
CatalogRepositoryException
boolean hasCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId) throws CatalogRepositoryException
storeTransactionIdMapping(String, TransactionId>,
TransactionId>)
catalogServiceTransactionId
- The CatalogService TransactionId in questionCatalogRepositoryException
- Any errorTransactionId<?> getCatalogServiceTransactionId(TransactionId<?> catalogTransactionId, String catalogId) throws CatalogRepositoryException
catalogTransactionId
- A Catalog TransactionIdcatalogId
- A unique Catalog ID when the Catalog TransactionId was usedCatalogRepositoryException
- Any ErrorTransactionId<?> getCatalogTransactionId(TransactionId<?> catalogServiceTransactionId, String catalogId) throws CatalogRepositoryException
catalogServiceTransactionId
- A Catalog TransactionIdcatalogId
- A unique Catalog ID when the Catalog TransactionId was usedCatalogRepositoryException
- Any ErrorSet<String> getCatalogIds(TransactionId<?> catalogServiceTransactionId) throws CatalogRepositoryException
catalogServiceTransactionId
- A CatalogService TransactionIdCatalogRepositoryException
- Any ErrorCatalogReceipt getCatalogReceipt(TransactionId<?> catalogServiceTransactionId, String catalogId) throws CatalogRepositoryException
catalogServiceTransactionId
- catalogId
- CatalogRepositoryException
Copyright © 1999-2014 Apache OODT. All Rights Reserved.