boolean forcedDayRange = false; try { uidList = Uid.List.parseFrom(currentValue.get()); log.debug("UidCOUNT for this key: " + uidList.getCOUNT()); dayCount += uidList.getCOUNT(); } catch (InvalidProtocolBufferException e) { if (uidList.getIGNORE()) { if (log.isDebugEnabled()) { log.debug("Adding range for the shard & datatype"); for (String uuid : uidList.getUIDList()) { Text cf = new Text(datatype); TextUtil.textAppend(cf, uuid);
Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); if (!deleteMode) { Value val = new Value(uidList.toByteArray()); Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); if (!deleteMode) { Value val = new Value(uidList.toByteArray());
Uid.List v = Uid.List.parseFrom(value.get()); long delta = v.getCOUNT(); if (v.getIGNORE()) { seenIgnore = true; if (log.isDebugEnabled()) for (String uid : v.getQUARANTINEUIDList()) { for (String uid : v.getUIDList()) { for (String uid : v.getREMOVEDUIDList()) { quarantinedIds.addAll(v.getQUARANTINEUIDList()); for (String uid : v.getUIDList()) {
Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); uidBuilder.setCOUNT(-1); uidBuilder.addUID(fiKeyParsed.getUid()); Uid.List uidList = uidBuilder.build(); Value val = new Value(uidList.toByteArray());
Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); uidBuilder.setCOUNT(1); uidBuilder.addUID(eventUid); Uid.List uidList = uidBuilder.build(); Value val = new Value(uidList.toByteArray());
Uid.List.Builder builder = Uid.List.newBuilder(); builder.addAllUID(docIds); builder.setCOUNT(docIds.size()); builder.setIGNORE(false); Value hasDocs = new Value(builder.build().toByteArray());
TreeMultimap<Key,Value> map = TreeMultimap.create(); map.put(newKey("20121002_1", "UUID", "abc", true), new Value(createNewUidList("abc.0").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.1").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.2").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.3").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.4").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abd"), new Value(createNewUidList("abc.3").build().toByteArray()));
Uid.List.Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); if (!deleteMode) { Value val = new Value(uidList.toByteArray());
uidList = Uid.List.parseFrom(value.get()); if (null != uidList) { count = uidList.getCOUNT(); setListSize(uidList.getUIDList().size());
public Builder mergeFrom(datawave.ingest.protobuf.Uid.List other) { if (other == datawave.ingest.protobuf.Uid.List.getDefaultInstance()) return this; if (other.hasIGNORE()) { setIGNORE(other.getIGNORE()); if (other.hasCOUNT()) { setCOUNT(other.getCOUNT()); this.mergeUnknownFields(other.getUnknownFields()); return this;
return new Value(builder.build().toByteArray());
Uid.List.Builder builder = Uid.List.newBuilder(); builder.addUID(uid.toString()); builder.setCOUNT(1); builder.setIGNORE(false); mut.put(entry.getKey().toUpperCase(), shardId + NULL_SEP + this.dataType, this.cfgData.getDefaultVisibility(), timestamp, new Value( builder.build().toByteArray())); bw.addMutation(mut);
b.addREMOVEDUID(uuid); Uid.List uidList = b.build(); Value val = new Value(uidList.toByteArray()); values.add(val); b.addUID(uuid); Uid.List uidList = b.build(); Value val = new Value(uidList.toByteArray()); values.add(val); i++; Uid.List resultList = Uid.List.parseFrom(result.get()); assertEquals(resultList.getUIDCount(), 0); assertEquals(resultList.getCOUNT(), 0);
if (keyValue != null && keyValue.getValue() != null && keyValue.getValue().getSize() > 0) { try { Uid.List.Builder uidList = Uid.List.parseFrom(keyValue.getValue().get()).toBuilder(); boolean changed = false; for (int i = 0; i < uidList.getUIDList().size(); i++) { keyValue = new KeyValue(keyValue.getKey(), uidList.build().toByteArray());
size += 1 * getUIDList().size(); size += 1 * getREMOVEDUIDList().size(); size += 1 * getQUARANTINEUIDList().size(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size;
Builder uidBuilder = Uid.List.newBuilder(); uidBuilder.setIGNORE(false); uidBuilder.setCOUNT(count); Uid.List uidList = uidBuilder.build(); org.apache.accumulo.core.data.Value v = new org.apache.accumulo.core.data.Value(uidList.toByteArray()); resultsMap.put(k, v); } catch (Exception e) {
TreeMultimap<Key,Value> map = TreeMultimap.create(); map.put(newKey("20121002_1", "UUID", "abc", true), new Value(createNewUidList("abc.0").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.1").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.2").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.3").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abc"), new Value(createNewUidList("abc.4").build().toByteArray())); map.put(newKey("20121002_1", "UUID", "abd"), new Value(createNewUidList("abc.3").build().toByteArray()));
Uid.List.Builder builder = Uid.List.newBuilder(); builder.addAllUID(docIds); builder.setCOUNT(docIds.size()); builder.setIGNORE(false); Value hasDocs = new Value(builder.build().toByteArray());