You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vxquery.apache.org by vi...@apache.org on 2012/06/25 12:57:22 UTC
svn commit: r1353455 - in
/incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery:
compiler/algebricks/ datamodel/accessors/nodes/ datamodel/builders/nodes/
Author: vinayakb
Date: Mon Jun 25 10:57:21 2012
New Revision: 1353455
URL: http://svn.apache.org/viewvc?rev=1353455&view=rev
Log:
Changed getUTFLen to getUTFLength in UTF8StringPointable
Modified:
incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java
incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java
incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java
incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java
Modified: incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java?rev=1353455&r1=1353454&r2=1353455&view=diff
==============================================================================
--- incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java (original)
+++ incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/compiler/algebricks/VXQueryPrinterFactory.java Mon Jun 25 10:57:21 2012
@@ -43,7 +43,7 @@ public class VXQueryPrinterFactory imple
switch ((int) tag) {
case ValueTag.XS_STRING_TAG: {
tvp.getValue(utf8sp);
- int utfLen = utf8sp.getUTFLen();
+ int utfLen = utf8sp.getUTFLength();
int offset = 2;
while (utfLen > 0) {
char c = utf8sp.charAt(offset);
Modified: incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java?rev=1353455&r1=1353454&r2=1353455&view=diff
==============================================================================
--- incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java (original)
+++ incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/NodeTreePointable.java Mon Jun 25 10:57:21 2012
@@ -46,7 +46,7 @@ public class NodeTreePointable extends A
@Override
public int getLength(int index) {
- return UTF8StringPointable.getUTFLen(bytes, getStart(index)) + 2;
+ return UTF8StringPointable.getUTFLength(bytes, getStart(index)) + 2;
}
};
@@ -80,7 +80,7 @@ public class NodeTreePointable extends A
int dataAreaStart = getDictionaryDataAreaStartOffset();
int idxSlotValue = IntegerPointable.getInteger(bytes, getDictionaryIndexPointerArrayOffset() + idx
* IDX_PTR_SLOT_SIZE);
- int strLen = UTF8StringPointable.getUTFLen(bytes, dataAreaStart + idxSlotValue);
+ int strLen = UTF8StringPointable.getUTFLength(bytes, dataAreaStart + idxSlotValue);
string.set(bytes, dataAreaStart + idxSlotValue, strLen + 2);
}
Modified: incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java?rev=1353455&r1=1353454&r2=1353455&view=diff
==============================================================================
--- incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java (original)
+++ incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/PINodePointable.java Mon Jun 25 10:57:21 2012
@@ -39,7 +39,7 @@ public class PINodePointable extends Abs
}
private int getTargetSize(NodeTreePointable nodeTree) {
- return UTF8StringPointable.getUTFLen(bytes, getTargetOffset(nodeTree)) + 2;
+ return UTF8StringPointable.getUTFLength(bytes, getTargetOffset(nodeTree)) + 2;
}
private int getContentOffset(NodeTreePointable nodeTree) {
@@ -47,6 +47,6 @@ public class PINodePointable extends Abs
}
private int getContentSize(NodeTreePointable nodeTree) {
- return UTF8StringPointable.getUTFLen(bytes, getContentOffset(nodeTree)) + 2;
+ return UTF8StringPointable.getUTFLength(bytes, getContentOffset(nodeTree)) + 2;
}
}
\ No newline at end of file
Modified: incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java
URL: http://svn.apache.org/viewvc/incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java?rev=1353455&r1=1353454&r2=1353455&view=diff
==============================================================================
--- incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java (original)
+++ incubator/vxquery/branches/vxquery_algebricks/vxquery-core/src/main/java/org/apache/vxquery/datamodel/builders/nodes/DictionaryBuilder.java Mon Jun 25 10:57:21 2012
@@ -40,7 +40,7 @@ public class DictionaryBuilder {
@Override
public int getLength(int index) {
- return UTF8StringPointable.getUTFLen(dataBuffer.getByteArray(), getStart(index)) + 2;
+ return UTF8StringPointable.getUTFLength(dataBuffer.getByteArray(), getStart(index)) + 2;
}
@Override