Class Graph::CompareNode#
Defined in File Graph.java
Nested Relationships#
This class is a nested type of Class Graph.
Inheritance Relationships#
Base Type#
public java::util::Comparator< IDatatype >
Class Documentation#
-
class CompareNode : public java::util::Comparator<IDatatype>#
Comparator for Node allocation where 1 and 01 have different Node with same Node index This Comparator enables to retrieve an occurrence of a given Literal already existing in graph in such a way that two occurrences of same Literal be represented by same Node It represents (1 integer) and (01 integer) as two different nodes that will be assigned the same node index in order to join in SPARQL.
Public Functions
-
inline int compare(IDatatype dt1, IDatatype dt2)#
Compares two IDatatype objects and returns the result.
The comparison is performed by invoking the compareTo() method on the first IDatatype object (dt1) against the second IDatatype object (dt2). The returned value is the result of the comparison.
This docstring was generated by AI.
- Parameters:
dt1 – The first IDatatype object to compare
dt2 – The second IDatatype object to compare
- Returns:
The result of the comparison between dt1 and dt2
-
inline int compare(IDatatype dt1, IDatatype dt2)#