/** * Convert a protocol buffer Mutate to a Delete * * @param proto the protocol buffer Mutate to convert * @return the converted client Delete * @throws IOException */ public static Delete toDelete(final MutationProto proto) throws IOException { return toDelete(proto, null); }
/** * Convert a MutateRequest to Mutation * * @param proto the protocol buffer Mutate to convert * @return the converted Mutation * @throws IOException */ public static Mutation toMutation(final MutationProto proto) throws IOException { MutationType type = proto.getMutateType(); if (type == MutationType.APPEND) { return toAppend(proto, null); } if (type == MutationType.DELETE) { return toDelete(proto, null); } if (type == MutationType.PUT) { return toPut(proto, null); } throw new IOException("Unknown mutation type " + type); }
/** * Convert a protocol buffer Mutate to a Delete * * @param proto the protocol buffer Mutate to convert * @return the converted client Delete * @throws IOException */ public static Delete toDelete(final MutationProto proto) throws IOException { return toDelete(proto, null); }
mutateBuilder.setDurability(MutationProto.Durability.USE_DEFAULT); Delete delete = ProtobufUtil.toDelete(proto);
/** * Convert a MutateRequest to Mutation * * @param proto the protocol buffer Mutate to convert * @return the converted Mutation * @throws IOException */ public static Mutation toMutation(final MutationProto proto) throws IOException { MutationType type = proto.getMutateType(); if (type == MutationType.APPEND) { return toAppend(proto, null); } if (type == MutationType.DELETE) { return toDelete(proto, null); } if (type == MutationType.PUT) { return toPut(proto, null); } throw new IOException("Unknown mutation type " + type); }
/** * Convert a protocol buffer Mutate to a Delete * * @param proto the protocol buffer Mutate to convert * @return the converted client Delete * @throws IOException */ public static Delete toDelete(final MutationProto proto) throws IOException { return toDelete(proto, null); }
/** * Convert a protocol buffer Mutate to a Delete * * @param proto the protocol buffer Mutate to convert * @return the converted client Delete * @throws IOException */ public static Delete toDelete(final MutationProto proto) throws IOException { return toDelete(proto, null); }
/** * Convert a MutateRequest to Mutation * * @param proto the protocol buffer Mutate to convert * @return the converted Mutation * @throws IOException */ public static Mutation toMutation(final MutationProto proto) throws IOException { MutationType type = proto.getMutateType(); if (type == MutationType.APPEND) { return toAppend(proto, null); } if (type == MutationType.DELETE) { return toDelete(proto, null); } if (type == MutationType.PUT) { return toPut(proto, null); } throw new IOException("Unknown mutation type " + type); }
/** * Convert a MutateRequest to Mutation * * @param proto the protocol buffer Mutate to convert * @return the converted Mutation * @throws IOException */ public static Mutation toMutation(final MutationProto proto) throws IOException { MutationType type = proto.getMutateType(); if (type == MutationType.APPEND) { return toAppend(proto, null); } if (type == MutationType.DELETE) { return toDelete(proto, null); } if (type == MutationType.PUT) { return toPut(proto, null); } throw new IOException("Unknown mutation type " + type); }
batchContainsPuts = true; } else { mutation = ProtobufUtil.toDelete(m, cells); batchContainsDelete = true;
break; case DELETE: rm.add(ProtobufUtil.toDelete(action.getMutation(), cellScanner)); break; default:
break; case DELETE: rm.add(ProtobufUtil.toDelete(action.getMutation(), cellScanner)); break; default:
mutateBuilder.setDurability(MutationProto.Durability.USE_DEFAULT); Delete delete = ProtobufUtil.toDelete(proto);
Delete delete = ProtobufUtil.toDelete(mutation, cellScanner); quota.addMutation(delete); if (request.hasCondition()) {