Class: Humboldt::DropBinaryPrefixComparator
- Inherits:
-
BinaryPrefixComparator
- Object
- BinaryPrefixComparator
- Humboldt::DropBinaryPrefixComparator
- Defined in:
- lib/humboldt/prefix_grouping.rb
Instance Method Summary collapse
Methods inherited from BinaryPrefixComparator
Constructor Details
This class inherits a constructor from Humboldt::BinaryPrefixComparator
Instance Method Details
#compare_raw(bytes1, start1, length1, bytes2, start2, length2) ⇒ Object
40 41 42 43 44 |
# File 'lib/humboldt/prefix_grouping.rb', line 40 def compare_raw(bytes1, start1, length1, bytes2, start2, length2) subset_length1 = length1 - @cutoff_index subset_length2 = length2 - @cutoff_index ::Hadoop::Io::WritableComparator.compareBytes(bytes1, start1, subset_length1, bytes2, start2, subset_length2) end |