public interface IngestService
A Interface for performing ingests to an Index
Modifier and Type | Method and Description |
---|---|
boolean |
delete(TransactionId<?> transactionId)
Deletes all TermBuckets attached to given TransactionId -- there should be no trace of
given transaction after this method is called.
|
IngestReceipt |
ingest(List<TermBucket> termBuckets)
Indexes the given TermBucket to a TransactionId, and returns a IngestReceipt
|
boolean |
reduce(TransactionId<?> transactionId,
List<TermBucket> termBuckets)
Deletes only the Terms in the given TermBuckets from the given TransactionId
|
IngestReceipt |
update(TransactionId<?> transactionId,
List<TermBucket> termBuckets)
TermBucket updates to given TransactionId.
|
IngestReceipt ingest(List<TermBucket> termBuckets) throws IngestServiceException
termBuckets
- The List of TermBucket to be ingestedIngestServiceException
- Any errorIngestReceipt update(TransactionId<?> transactionId, List<TermBucket> termBuckets) throws IngestServiceException
transactionId
- termBuckets
- IngestServiceException
boolean delete(TransactionId<?> transactionId) throws IngestServiceException
transactionId
- The ID for given transaction which should be erasedIngestServiceException
- Any errorboolean reduce(TransactionId<?> transactionId, List<TermBucket> termBuckets) throws IngestServiceException
transactionId
- The TransactionId for which Terms will be deletedtermBuckets
- The reduction set of Terms for each TermBucketIngestServiceException
- Any errorCopyright © 1999-2014 Apache OODT. All Rights Reserved.