Represents a Hypertable counter, provide accessors to the counter attributes.

Namespace: Hypertable
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public sealed class Counter
<SerializableAttribute> _
Public NotInheritable Class Counter
[SerializableAttribute]
public ref class Counter sealed

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Counter()()()()
Initializes a new instance of the Counter class.
Counter(Cell)
Initializes a new instance of the Counter class using the specified cell.
Counter(Key)
Initializes a new instance of the Counter class.
Counter(Key, Int64)
Initializes a new instance of the Counter class using the specified key and counter value.
Counter(Key, Int64, Boolean)
Initializes a new instance of the Counter class using the specified key and counter value.
DecrementCounter(Int64)
Decrements the counter value by the value specified.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Flag
Gets or sets the cell flag.
GetBytes()()()()
Gets the counter value bytes, might be null.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IncrementCounter(Int64)
Increments the counter value by the value specified.
Key
Gets or sets the key.
ResetCounter(Int64)
Resets the counter value to the value specified.
ToCell()()()()
Returns the cell that represents the counter.
ToString()()()()
Returns a string that represents the current object.
(Overrides Object..::..ToString()()()().)
Value
Gets the counter value.

Examples

The following example shows how to insert a counter value.
CopyC#
using( var mutator = table.CreateMutator() ) {
   Key key = new Key("row", "cf");
   Counter counter = new Counter(key, 1234);
   mutator.Set(counter.ToCell());
}

Inheritance Hierarchy

System..::..Object
  Hypertable..::..Counter

See Also