Class: Immudb::TxEntry
- Inherits:
-
Object
- Object
- Immudb::TxEntry
- Defined in:
- lib/immudb/tx_entry.rb
Instance Attribute Summary collapse
-
#hVal ⇒ Object
readonly
Returns the value of attribute hVal.
-
#k ⇒ Object
readonly
Returns the value of attribute k.
-
#kLen ⇒ Object
readonly
Returns the value of attribute kLen.
-
#md ⇒ Object
readonly
Returns the value of attribute md.
-
#vLen ⇒ Object
readonly
Returns the value of attribute vLen.
-
#vOff ⇒ Object
readonly
Returns the value of attribute vOff.
Instance Method Summary collapse
-
#initialize(key, md, vLen, hVal, vOff) ⇒ TxEntry
constructor
A new instance of TxEntry.
- #key ⇒ Object
- #metadata ⇒ Object
Constructor Details
#initialize(key, md, vLen, hVal, vOff) ⇒ TxEntry
Returns a new instance of TxEntry.
17 18 19 20 21 22 23 24 |
# File 'lib/immudb/tx_entry.rb', line 17 def initialize(key, md, vLen, hVal, vOff) @k = key @kLen = key.length @md = md @vLen = vLen @hVal = hVal @vOff = vOff end |
Instance Attribute Details
#hVal ⇒ Object (readonly)
Returns the value of attribute hVal.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def hVal @hVal end |
#k ⇒ Object (readonly)
Returns the value of attribute k.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def k @k end |
#kLen ⇒ Object (readonly)
Returns the value of attribute kLen.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def kLen @kLen end |
#md ⇒ Object (readonly)
Returns the value of attribute md.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def md @md end |
#vLen ⇒ Object (readonly)
Returns the value of attribute vLen.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def vLen @vLen end |
#vOff ⇒ Object (readonly)
Returns the value of attribute vOff.
15 16 17 |
# File 'lib/immudb/tx_entry.rb', line 15 def vOff @vOff end |
Instance Method Details
#key ⇒ Object
26 27 28 |
# File 'lib/immudb/tx_entry.rb', line 26 def key @k end |
#metadata ⇒ Object
30 31 32 |
# File 'lib/immudb/tx_entry.rb', line 30 def @md end |