[ 
https://issues.apache.org/jira/browse/IGNITE-25265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladislav Pyatkov updated IGNITE-25265:
---------------------------------------
    Description: 
h3. Motivation
On insertion entry into the B-tree, we are using inlined bytes. In the case 
where the value cannot be compared in truncated view, we are using a full 
comparator. The full comparator again starts for the first position in the 
indexed value without considering that the first inlined bytes are the same.
h3. Definition of don
The full comparator can accept a position in the indexed value, within that 
value.
{code:title=BinaryTupleComparator}
    public int compare(ByteBuffer buffer1, ByteBuffer buffer2, int position) {
{code}

  was:
h3. Motivation
On insertion entry into the B-tree, we are using inlined bytes. In the case 
where the value cannot be compared in truncated view, we are using a full 
comparator. The full comparator again starts for the first position in the 
indexed value without considering that the first inlined bytes are the same.
h3. Definition of don
The full comparator can accept a position in the indexed value, within that 
value.


> Binary tuple comparator does not restore position after partial comparison
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-25265
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25265
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> h3. Motivation
> On insertion entry into the B-tree, we are using inlined bytes. In the case 
> where the value cannot be compared in truncated view, we are using a full 
> comparator. The full comparator again starts for the first position in the 
> indexed value without considering that the first inlined bytes are the same.
> h3. Definition of don
> The full comparator can accept a position in the indexed value, within that 
> value.
> {code:title=BinaryTupleComparator}
>     public int compare(ByteBuffer buffer1, ByteBuffer buffer2, int position) {
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to