com.bigdata.rdf.inf
Class VarOrId

java.lang.Object
  extended by com.bigdata.rdf.inf.VarOrId
All Implemented Interfaces:
Comparable<VarOrId>

public abstract class VarOrId
extends Object
implements Comparable<VarOrId>

A class that models either a constant identifier for an RDF Value or an unbound variable.


Field Summary
 long id
          The reserved value IRawTripleStore.NULL is used to denote an unbound variable.
protected static long NULL
           
 
Constructor Summary
protected VarOrId(long id)
           
 
Method Summary
abstract  boolean equals(VarOrId o)
           
abstract  int hashCode()
           
abstract  boolean isConstant()
           
abstract  boolean isVar()
           
abstract  String toString()
           
abstract  String toString(AbstractTripleStore db)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

NULL

protected static final transient long NULL
See Also:
Constant Field Values

id

public final long id
The reserved value IRawTripleStore.NULL is used to denote an unbound variable.

Constructor Detail

VarOrId

protected VarOrId(long id)
Method Detail

isVar

public abstract boolean isVar()

isConstant

public abstract boolean isConstant()

equals

public abstract boolean equals(VarOrId o)

hashCode

public abstract int hashCode()
Overrides:
hashCode in class Object

toString

public abstract String toString()
Overrides:
toString in class Object

toString

public abstract String toString(AbstractTripleStore db)


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.