public class BlankNodeID extends Object implements ValueMaker
(Note: The implementation makes some assumptions about the Column class to keep the code simple and fast. This means BlankNodeIdentifier might not work with some hypothetical subclasses of Column.)
NULL| Constructor and Description |
|---|
BlankNodeID(String classMapID,
List<Attribute> attributes)
Constructs a new blank node identifier.
|
| Modifier and Type | Method and Description |
|---|---|
List<Attribute> |
attributes() |
String |
classMapID() |
void |
describeSelf(NodeSetFilter c) |
String |
makeValue(ResultRow row)
Creates an identifier from a database row.
|
boolean |
matches(String value) |
List<OrderSpec> |
orderSpecs(boolean ascending) |
Set<ProjectionSpec> |
projectionSpecs()
Returns a set of all
ProjectionSpecs containing data necessary
for this ValueSource. |
ValueMaker |
renameAttributes(ColumnRenamer renamer) |
Expression |
toExpression() |
String |
toString() |
Expression |
valueExpression(String value)
A SQL expression that selects only rows where this value maker
produces the specified value.
|
public BlankNodeID(String classMapID, List<Attribute> attributes)
classMapID - A string that is unique for the class map
whose resources are identified by this BlankNodeIdentifierattributes - A set of Attributes that uniquely
identify the nodespublic String classMapID()
public void describeSelf(NodeSetFilter c)
describeSelf in interface ValueMakerpublic boolean matches(String value)
public Expression valueExpression(String value)
ValueMakerExpression.FALSE if this
value maker is incapable of producing the value.valueExpression in interface ValueMakervalue - A valuepublic Set<ProjectionSpec> projectionSpecs()
ValueMakerProjectionSpecs containing data necessary
for this ValueSource.projectionSpecs in interface ValueMakerProjectionSpecspublic String makeValue(ResultRow row)
makeValue in interface ValueMakerrow - a database rowpublic ValueMaker renameAttributes(ColumnRenamer renamer)
renameAttributes in interface ValueMakerpublic List<OrderSpec> orderSpecs(boolean ascending)
orderSpecs in interface ValueMakerpublic Expression toExpression()