[
https://issues.apache.org/jira/browse/PHOENIX-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916756#comment-13916756
]
Hudson commented on PHOENIX-37:
-------------------------------
SUCCESS: Integrated in Apache Phoenix - Branch:master #88 (See
[https://builds.apache.org/job/Phoenix/88/])
PHOENIX-37 Prevent deserialize and re-serialize all array elements in
construction of array (ramkrishna) (jtaylor: rev
27e00aec132e45155f648c235f2ea221c7589d99)
* phoenix-core/src/main/java/org/apache/phoenix/schema/ValueSchema.java
* phoenix-core/src/main/java/org/apache/phoenix/schema/PhoenixArray.java
* phoenix-core/src/main/java/org/apache/phoenix/schema/PDataType.java
*
phoenix-core/src/test/java/org/apache/phoenix/schema/PDataTypeForArraysTest.java
*
phoenix-core/src/main/java/org/apache/phoenix/expression/ArrayConstructorExpression.java
* phoenix-core/src/test/java/org/apache/phoenix/end2end/ArrayTest.java
*
phoenix-core/src/main/java/org/apache/phoenix/expression/function/ArrayIndexFunction.java
* phoenix-core/src/main/java/org/apache/phoenix/schema/PArrayDataType.java
> Prevent deserialize and re-serialize all array elements in construction of
> array
> --------------------------------------------------------------------------------
>
> Key: PHOENIX-37
> URL: https://issues.apache.org/jira/browse/PHOENIX-37
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: James Taylor
> Assignee: ramkrishna.s.vasudevan
> Fix For: 3.0.0
>
> Attachments: Phoenix-37_final.patch, Phoenix-37_final_1.patch,
> Phoenix-37_final_2.patch, phoenix-37.patch
>
>
> ArrayConstructorExpression.evaluate() currently deserializes into object form
> all array elements only to serialize them back again as bytes. Instead, just
> use a TrustedByteArrayOuputStream (initially sized based on the number of
> child elements) to serialize the data into. If variable length, track the
> offset information as the data is written.
> Second, we should put the header information (offsets, length, and version)
> at the end of the array instead of the start. This will make it possible to
> compare arrays against each other in their byte form.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)