public class Catalog extends Object
A Calatog is a communication interface between the CatalogService and an underlying database or index service
Modifier and Type | Field and Description |
---|---|
protected Vector<Dictionary> |
dictionaries |
protected String |
id |
protected Index |
index |
protected boolean |
restrictIngestPermissions |
protected boolean |
restrictQueryPermissions |
Constructor and Description |
---|
Catalog(String id,
Index index,
List<Dictionary> dictionaries,
boolean restrictQueryPermissions,
boolean restrictIngestPermissions) |
protected Vector<Dictionary> dictionaries
protected Index index
protected String id
protected boolean restrictQueryPermissions
protected boolean restrictIngestPermissions
public Catalog(String id, Index index, List<Dictionary> dictionaries, boolean restrictQueryPermissions, boolean restrictIngestPermissions)
public String getId()
public TransactionIdFactory getTransactionIdFactory() throws CatalogIndexException
CatalogIndexException
public void setIndex(Index index)
public void setDictionaries(List<Dictionary> dictionaries)
public List<Dictionary> getDictionaries()
public void addDictionary(Dictionary dictionary)
public void setRestrictQueryPermissions(boolean restrictQueryPermissions)
public void setRestrictIngestPermissions(boolean restrictIngestPermissions)
public boolean isQueriable()
public boolean isIngestable()
public List<TransactionId<?>> getPage(IndexPager indexPage) throws CatalogIndexException
CatalogIndexException
public TransactionId<?> getTransactionIdFromString(String catalogTransactionId) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, CatalogIndexException
public boolean hasTransactionId(TransactionId<?> catalogTransactionid) throws CatalogIndexException
CatalogIndexException
public String getProperty(String key) throws CatalogException
CatalogException
public Properties getProperties() throws CatalogException
CatalogException
public CatalogReceipt ingest(Metadata metadata) throws CatalogException
transactionId
- metadata
- IngestServiceException
CatalogException
public CatalogReceipt update(TransactionId<?> transactionId, Metadata metadata) throws CatalogException
CatalogException
public boolean delete(TransactionId<?> transactionId) throws CatalogException
CatalogException
public boolean reduce(TransactionId<?> transactionId, Metadata metadata) throws CatalogException
CatalogException
public List<CatalogReceipt> query(QueryExpression queryExpression) throws CatalogException
CatalogException
public List<CatalogReceipt> query(QueryExpression queryExpression, int startIndex, int endIndex) throws CatalogException
CatalogException
public int sizeOf(QueryExpression queryExpression) throws CatalogException
CatalogException
public Metadata getMetadata(TransactionId<?> transactionId) throws CatalogException
CatalogException
public Map<TransactionId<?>,Metadata> getMetadata(List<TransactionId<?>> transactionIds) throws CatalogException
CatalogException
public boolean isInterested(QueryExpression queryExpression) throws CatalogException
CatalogException
protected Metadata getMetadataFromBuckets(List<TermBucket> termBuckets) throws CatalogDictionaryException
CatalogDictionaryException
protected Metadata asMetadata(List<TermBucket> termBuckets)
protected List<TermBucket> getTermBuckets(Metadata metadata) throws CatalogDictionaryException
CatalogDictionaryException
Copyright © 1999-2015 Apache OODT. All Rights Reserved.