org.d2rq.mapgen
Class UniqueLocalNameGenerator
java.lang.Object
org.d2rq.mapgen.UniqueLocalNameGenerator
public class UniqueLocalNameGenerator
- extends Object
Returns string representations of various objects, guaranteeing that
different objects receive different string representations. The
class attempts to generate string representations that can be used
as local names in Turtle/SPARQL prefixed names, but this is not guaranteed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueLocalNameGenerator
public UniqueLocalNameGenerator()
toString
public String toString(TableName tableName)
- Returns SCHEMA_TABLE. Except if that string is already taken
by another table name (or column name); in that case we add
more underscores until we have no clash.
toString
public String toString(TableName tableName,
Identifier column)
- Returns TABLE_COLUMN. Except if that string is already taken by
another column name (e.g., AAA.BBB_CCC and AAA_BBB.CCC would
result in the same result AAA_BBB_CCC); in that case we add more
underscores (AAA__BBB_CCC) until we have no clash.
toString
public String toString(TableName tableName,
Key columns)