Class: Omnizip::Chunked::Configuration
- Inherits:
-
Object
- Object
- Omnizip::Chunked::Configuration
- Defined in:
- lib/omnizip/chunked.rb
Overview
Configuration for chunked operations
Instance Attribute Summary collapse
-
#chunk_size ⇒ Object
Returns the value of attribute chunk_size.
-
#max_memory ⇒ Object
Returns the value of attribute max_memory.
-
#spill_strategy ⇒ Object
Returns the value of attribute spill_strategy.
-
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 |
# File 'lib/omnizip/chunked.rb', line 15 def initialize @chunk_size = 64 * 1024 * 1024 # 64MB @max_memory = 256 * 1024 * 1024 # 256MB @temp_directory = nil # Use system default @spill_strategy = :disk # or :error end |
Instance Attribute Details
#chunk_size ⇒ Object
Returns the value of attribute chunk_size.
13 14 15 |
# File 'lib/omnizip/chunked.rb', line 13 def chunk_size @chunk_size end |
#max_memory ⇒ Object
Returns the value of attribute max_memory.
13 14 15 |
# File 'lib/omnizip/chunked.rb', line 13 def max_memory @max_memory end |
#spill_strategy ⇒ Object
Returns the value of attribute spill_strategy.
13 14 15 |
# File 'lib/omnizip/chunked.rb', line 13 def spill_strategy @spill_strategy end |
#temp_directory ⇒ Object
Returns the value of attribute temp_directory.
13 14 15 |
# File 'lib/omnizip/chunked.rb', line 13 def temp_directory @temp_directory end |