Class: DataMetaByteSer::RwHolder

Inherits:
Object
  • Object
show all
Defined in:
lib/dataMetaByteSer/util.rb

Overview

A holder for a read renderer and a write renderer, those come in pairs that have to be consistent so the data is read and written uniformly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(readRenderer, writeRenderer) ⇒ RwHolder

Creates a new HDFS Reade and Write renderers pair.



24
# File 'lib/dataMetaByteSer/util.rb', line 24

def initialize(readRenderer, writeRenderer); @r = readRenderer; @w = writeRenderer end

Instance Attribute Details

#rObject (readonly)

Read renderer.



16
17
18
# File 'lib/dataMetaByteSer/util.rb', line 16

def r
  @r
end

#wObject (readonly)

Write renderer.



20
21
22
# File 'lib/dataMetaByteSer/util.rb', line 20

def w
  @w
end