You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/11/15 10:50:35 UTC
svn commit: r1409713 -
/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
Author: andy
Date: Thu Nov 15 09:50:35 2012
New Revision: 1409713
URL: http://svn.apache.org/viewvc?rev=1409713&view=rev
Log:
JENA-346
Node.ANY / NodeId.nodeIdAny handling
Modified:
jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java?rev=1409713&r1=1409712&r2=1409713&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java Thu Nov 15 09:50:35 2012
@@ -93,6 +93,8 @@ public class NodeTableTrans implements N
@Override
public NodeId getNodeIdForNode(Node node)
{
+ if ( node == Node.ANY )
+ return NodeId.NodeIdAny ;
if ( passthrough ) return base.getNodeIdForNode(node) ;
NodeId nodeId = nodeTableJournal.getNodeIdForNode(node) ;
if ( ! NodeId.isDoesNotExist(nodeId) )
@@ -104,6 +106,8 @@ public class NodeTableTrans implements N
@Override
public Node getNodeForNodeId(NodeId id)
{
+ if ( NodeId.isAny(id) )
+ return Node.ANY ;
if ( passthrough ) return base.getNodeForNodeId(id) ;
long x = id.getId() ;
if ( x < allocOffset )