Class: Ferret::Store::FSDirectory::FSIndexOutput
- Inherits:
-
BufferedIndexOutput
- Object
- IndexOutput
- BufferedIndexOutput
- Ferret::Store::FSDirectory::FSIndexOutput
- Defined in:
- lib/ferret/store/fs_store.rb
Overview
A file system output stream extending OutputStream to read from the file system
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(path) ⇒ FSIndexOutput
constructor
A new instance of FSIndexOutput.
- #seek(pos) ⇒ Object
Methods inherited from BufferedIndexOutput
#flush, #length, #pos, #write_byte, #write_bytes, #write_chars, #write_int, #write_long, #write_string, #write_uint, #write_ulong, #write_vint, #write_vlong
Methods inherited from IndexOutput
#flush, #length, #pos, #write_byte, #write_bytes, #write_chars, #write_int, #write_long, #write_string, #write_vint
Constructor Details
#initialize(path) ⇒ FSIndexOutput
Returns a new instance of FSIndexOutput.
251 252 253 254 |
# File 'lib/ferret/store/fs_store.rb', line 251 def initialize(path) super() @file = File.open(path, "wb") end |
Instance Method Details
#close ⇒ Object
256 257 258 259 |
# File 'lib/ferret/store/fs_store.rb', line 256 def close super() @file.close end |
#seek(pos) ⇒ Object
261 262 263 264 |
# File 'lib/ferret/store/fs_store.rb', line 261 def seek(pos) super(pos) @file.seek(pos) end |