public interface QueryService
A Interface for performing queries to a Catalog
Modifier and Type | Method and Description |
---|---|
Map<TransactionId<?>,List<TermBucket>> |
getBuckets(List<TransactionId<?>> transactionIds)
Does the same as getBuckets(TransactionId), except is performed over a list
of TransactionIds
|
List<TermBucket> |
getBuckets(TransactionId<?> transactionId)
Returns a List of TermBuckets ingested for a given TransactionId
|
List<IngestReceipt> |
query(QueryExpression queryExpression)
Returns all the TransactionIds that fall under the given query
|
List<IngestReceipt> |
query(QueryExpression queryExpression,
int startIndex,
int endIndex)
Returns the results of the given query such that: [startIndex, endIndex)
|
int |
sizeOf(QueryExpression queryExpression)
Returns the number of results found for the given query
|
List<IngestReceipt> query(QueryExpression queryExpression) throws QueryServiceException
query
- The query for TransactionIdsQueryServiceException
List<IngestReceipt> query(QueryExpression queryExpression, int startIndex, int endIndex) throws QueryServiceException
queryExpression
- The query for which results will be returnedstartIndex
- The start index of subset of results to be returnedendIndex
- The end index of the subset of results to be returnedQueryServiceException
- on an errorint sizeOf(QueryExpression queryExpression) throws QueryServiceException
queryExpression
- The query whose size in questionQueryServiceException
- on an errorList<TermBucket> getBuckets(TransactionId<?> transactionId) throws QueryServiceException
transactionId
- The TransactionId in questionQueryServiceException
Map<TransactionId<?>,List<TermBucket>> getBuckets(List<TransactionId<?>> transactionIds) throws QueryServiceException
transactionIds
- A List of TransactionIds for which TermBuckets are wantedQueryServiceException
Copyright © 1999-2014 Apache OODT. All Rights Reserved.