/** * Appends the value to the existing value of the cell. If the targeted cell is unset, it will be * treated as containing the empty string. */ public ReadModifyWriteRow append( @Nonnull String familyName, @Nonnull ByteString qualifier, @Nonnull ByteString value) { Validations.validateFamily(familyName); Preconditions.checkNotNull(qualifier, "Qualifier can't be null"); Preconditions.checkNotNull(value, "Value can't be null"); Preconditions.checkArgument(!value.isEmpty(), "Value can't be empty"); ReadModifyWriteRule rule = ReadModifyWriteRule.newBuilder() .setFamilyName(familyName) .setColumnQualifier(qualifier) .setAppendValue(value) .build(); builder.addRules(rule); return this; }
/** * Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated * as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as * a 64-bit big-endian signed integer), or the entire request will fail. */ public ReadModifyWriteRow increment( @Nonnull String familyName, @Nonnull ByteString qualifier, long amount) { Validations.validateFamily(familyName); Preconditions.checkNotNull(qualifier, "Qualifier can't be null"); ReadModifyWriteRule rule = ReadModifyWriteRule.newBuilder() .setFamilyName(familyName) .setColumnQualifier(qualifier) .setIncrementAmount(amount) .build(); builder.addRules(rule); return this; }
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules(com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder setRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules(com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules( com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * Appends the value to the existing value of the cell. If the targeted cell is unset, it will be * treated as containing the empty string. */ public ReadModifyWriteRow append( @Nonnull String familyName, @Nonnull ByteString qualifier, @Nonnull ByteString value) { Validations.validateFamily(familyName); Preconditions.checkNotNull(qualifier, "Qualifier can't be null"); Preconditions.checkNotNull(value, "Value can't be null"); Preconditions.checkArgument(!value.isEmpty(), "Value can't be empty"); ReadModifyWriteRule rule = ReadModifyWriteRule.newBuilder() .setFamilyName(familyName) .setColumnQualifier(qualifier) .setAppendValue(value) .build(); builder.addRules(rule); return this; }
/** * Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated * as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as * a 64-bit big-endian signed integer), or the entire request will fail. */ public ReadModifyWriteRow increment( @Nonnull String familyName, @Nonnull ByteString qualifier, long amount) { Validations.validateFamily(familyName); Preconditions.checkNotNull(qualifier, "Qualifier can't be null"); ReadModifyWriteRule rule = ReadModifyWriteRule.newBuilder() .setFamilyName(familyName) .setColumnQualifier(qualifier) .setIncrementAmount(amount) .build(); builder.addRules(rule); return this; }
/** * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder setRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder addRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Rules specifying how the specified row's contents are to be transformed * into writes. Entries are applied in order, meaning that earlier rules will * affect the results of later ones. * </pre> * * <code>repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3;</code> */ public Builder setRules( int index, com.google.bigtable.v2.ReadModifyWriteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**