public RemoveLocationMessage(String documentSelection) { try { this.documentSelection = documentSelection; BucketSelector bucketSel = new BucketSelector(new BucketIdFactory()); Set<BucketId> rawBuckets = bucketSel.getBucketList(documentSelection); if (rawBuckets == null || rawBuckets.size() != 1) { throw new IllegalArgumentException("Document selection for remove location must map to a single location (user or group)"); } else { // There can only be one. for (BucketId id : rawBuckets) { bucketId = id; } } } catch (com.yahoo.document.select.parser.ParseException p) { throw new IllegalArgumentException(p); } }
int distributionBitCount, ProgressToken progress) throws ParseException { BucketSelector bucketSel = new BucketSelector(idFactory); Set<BucketId> rawBuckets = bucketSel.getBucketList(documentSelection); BucketSource src;