|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.catalog.mapping.LuceneIngestMapper
public class LuceneIngestMapper
A Ingest Mapper that indexes to a Lucene index
| Constructor Summary | |
|---|---|
LuceneIngestMapper()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneIngestMapper()
| Method Detail |
|---|
public void deleteAllMappingsForCatalog(String catalogId)
throws CatalogRepositoryException
deleteAllMappingsForCatalog in interface IngestMapperCatalogRepositoryException
public void deleteAllMappingsForCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId)
throws CatalogRepositoryException
deleteAllMappingsForCatalogServiceTransactionId in interface IngestMapperCatalogRepositoryException
public void deleteTransactionIdMapping(TransactionId<?> catalogTransactionId,
String catalogId)
throws CatalogRepositoryException
deleteTransactionIdMapping in interface IngestMapperCatalogRepositoryException
public CatalogReceipt getCatalogReceipt(TransactionId<?> catalogServiceTransactionId,
String catalogId)
throws CatalogRepositoryException
getCatalogReceipt in interface IngestMapperCatalogRepositoryException
public TransactionId<?> getCatalogServiceTransactionId(TransactionId<?> catalogTransactionId,
String catalogId)
throws CatalogRepositoryException
IngestMapper
getCatalogServiceTransactionId in interface IngestMappercatalogTransactionId - A Catalog TransactionIdcatalogId - A unique Catalog ID when the Catalog TransactionId was used
CatalogRepositoryException - Any Error
public TransactionId<?> getCatalogTransactionId(TransactionId<?> catalogServiceTransactionId,
String catalogId)
throws CatalogRepositoryException
IngestMapper
getCatalogTransactionId in interface IngestMappercatalogServiceTransactionId - A Catalog TransactionIdcatalogId - A unique Catalog ID when the Catalog TransactionId was used
CatalogRepositoryException - Any Error
public Set<String> getCatalogIds(TransactionId<?> catalogServiceTransactionId)
throws CatalogRepositoryException
IngestMapper
getCatalogIds in interface IngestMappercatalogServiceTransactionId - A CatalogService TransactionId
CatalogRepositoryException - Any Error
public Set<TransactionId<?>> getPageOfCatalogTransactionIds(IndexPager indexPager,
String catalogId)
throws CatalogRepositoryException
getPageOfCatalogTransactionIds in interface IngestMapperCatalogRepositoryException
public boolean hasCatalogServiceTransactionId(TransactionId<?> catalogServiceTransactionId)
throws CatalogRepositoryException
IngestMapperstoreTransactionIdMapping(String, TransactionId>,
TransactionId>)
hasCatalogServiceTransactionId in interface IngestMappercatalogServiceTransactionId - The CatalogService TransactionId in question
CatalogRepositoryException - Any error
public void storeTransactionIdMapping(TransactionId<?> catalogServiceTransactionId,
TransactionIdFactory catalogServiceTransactionIdFactory,
CatalogReceipt catalogReceipt,
TransactionIdFactory catalogTransactionIdFactory)
throws CatalogRepositoryException
IngestMapper
storeTransactionIdMapping in interface IngestMappercatalogServiceTransactionId - TransactionId generated by the CatalogService
CatalogRepositoryException - Any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||