You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vxquery.apache.org by pr...@apache.org on 2015/06/28 21:18:24 UTC
[02/14] vxquery git commit: Apache License header added to new files
Apache License header added to new files
Project: http://git-wip-us.apache.org/repos/asf/vxquery/repo
Commit: http://git-wip-us.apache.org/repos/asf/vxquery/commit/fa890b27
Tree: http://git-wip-us.apache.org/repos/asf/vxquery/tree/fa890b27
Diff: http://git-wip-us.apache.org/repos/asf/vxquery/diff/fa890b27
Branch: refs/heads/master
Commit: fa890b27597af1b6137fd284694e73cbb8ecab6a
Parents: 85ed19f
Author: Shivani Mall <sm...@ucr.edu>
Authored: Wed Jun 17 17:46:51 2015 -0700
Committer: Shivani Mall <sm...@ucr.edu>
Committed: Wed Jun 17 17:46:51 2015 -0700
----------------------------------------------------------------------
.../accessors/nodes/AbstractNodePointable.java | 19 ++++++++++++++++++-
.../AbstractNodePositionalCheckEvaluator.java | 18 +++++++++++++++++-
2 files changed, 35 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/vxquery/blob/fa890b27/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AbstractNodePointable.java
----------------------------------------------------------------------
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AbstractNodePointable.java b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AbstractNodePointable.java
index 05a2b6d..b5ced2c 100644
--- a/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AbstractNodePointable.java
+++ b/vxquery-core/src/main/java/org/apache/vxquery/datamodel/accessors/nodes/AbstractNodePointable.java
@@ -1,10 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.vxquery.datamodel.accessors.nodes;
import edu.uci.ics.hyracks.data.std.api.AbstractPointable;
import edu.uci.ics.hyracks.data.std.primitive.IntegerPointable;
public abstract class AbstractNodePointable extends AbstractPointable {
- public int getLocalNodeId(NodeTreePointable nodeTree) {
+ public int getLocalNodeId(NodeTreePointable nodeTree) {
return nodeTree.nodeIdExists() ? IntegerPointable.getInteger(bytes, getLocalNodeIdOffset(nodeTree)) : -1;
}
http://git-wip-us.apache.org/repos/asf/vxquery/blob/fa890b27/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/node/AbstractNodePositionalCheckEvaluator.java
----------------------------------------------------------------------
diff --git a/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/node/AbstractNodePositionalCheckEvaluator.java b/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/node/AbstractNodePositionalCheckEvaluator.java
index 56cb3fa..8ea3e6d 100644
--- a/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/node/AbstractNodePositionalCheckEvaluator.java
+++ b/vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/node/AbstractNodePositionalCheckEvaluator.java
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package org.apache.vxquery.runtime.functions.node;
import org.apache.vxquery.datamodel.accessors.TaggedValuePointable;
@@ -36,7 +53,6 @@ public abstract class AbstractNodePositionalCheckEvaluator extends AbstractTagge
}
}
- //node passed in from argument
protected void parameterTypeCheck(TaggedValuePointable node, NodeTreePointable ntp) throws SystemException {
if (node.getTag() == ValueTag.NODE_TREE_TAG) {
node.getValue(ntp);