Пример #1
0
 internal override ReadModifyWriteRule AsApiObject()
 {
     return(new ReadModifyWriteRule
     {
         ColumnQualifier = ColumnName.ToByteString(Encoding),
         FamilyName = FamilyName,
         AppendValue = Value.ToByteString()
     });
 }
Пример #2
0
 internal override ReadModifyWriteRule AsApiObject()
 {
     return(new ReadModifyWriteRule
     {
         ColumnQualifier = ColumnName.ToByteString(Encoding),
         FamilyName = FamilyName,
         IncrementAmount = Value
     });
 }
Пример #3
0
 internal override Mutation AsApiObject()
 {
     return(new Mutation
     {
         SetCell = new Mutation.Types.SetCell
         {
             FamilyName = FamilyName,
             ColumnQualifier = ColumnName.ToByteString(Encoding),
             Value = Value.ToByteString(),
             TimestampMicros = (Timestamp == 0 ? DateTime.UtcNow.ToUnixTime() : Timestamp) * 1000
         }
     });
 }
Пример #4
0
 internal override Mutation AsApiObject()
 {
     return(new Mutation
     {
         DeleteFromColumn = new Mutation.Types.DeleteFromColumn
         {
             FamilyName = FamilyName,
             ColumnQualifier = ColumnName.ToByteString(Encoding),
             TimeRange = new TimestampRange
             {
                 StartTimestampMicros = StartMicros,
                 EndTimestampMicros = EndMicros
             }
         }
     });
 }