Class: Kreuzberg::ChunkingReasonLargeAndManyPages
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::ChunkingReasonLargeAndManyPages
- Extended by:
- T::Sig
- Includes:
- ChunkingReason
- Defined in:
- lib/kreuzberg/native.rb
Overview
Both size and page count exceed thresholds.
Instance Attribute Summary collapse
-
#page_count ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#size_bytes ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #large_and_many_pages? ⇒ Boolean
- #large_file? ⇒ Boolean
- #many_pages? ⇒ Boolean
- #ocr_required? ⇒ Boolean
Instance Attribute Details
#page_count ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4411 4412 4413 |
# File 'lib/kreuzberg/native.rb', line 4411 def page_count @page_count end |
#size_bytes ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
4411 4412 4413 |
# File 'lib/kreuzberg/native.rb', line 4411 def size_bytes @size_bytes end |
Class Method Details
.from_hash(hash) ⇒ Object
4432 4433 4434 |
# File 'lib/kreuzberg/native.rb', line 4432 def self.from_hash(hash) new(size_bytes: hash[:size_bytes] || hash["size_bytes"], page_count: hash[:page_count] || hash["page_count"]) end |
Instance Method Details
#large_and_many_pages? ⇒ Boolean
4428 4429 4430 |
# File 'lib/kreuzberg/native.rb', line 4428 def large_and_many_pages? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#large_file? ⇒ Boolean
4422 |
# File 'lib/kreuzberg/native.rb', line 4422 def large_file? = false |
#many_pages? ⇒ Boolean
4424 |
# File 'lib/kreuzberg/native.rb', line 4424 def many_pages? = false |
#ocr_required? ⇒ Boolean
4426 |
# File 'lib/kreuzberg/native.rb', line 4426 def ocr_required? = false |