|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.values.Column
public class Column
A ValueMaker
that takes its values from a single
column.
Constructor Summary | |
---|---|
Column(Attribute attribute)
|
Method Summary | |
---|---|
Map |
attributeConditions(String value)
Returns a map of database fields and values corresponding to the argument. |
void |
describeSelf(NodeSetFilter c)
|
String |
makeValue(ResultRow row)
Retrieves a value from a database row according to some rule or pattern. |
boolean |
matches(String value)
Checks if a given value fits this source without querying the database. |
Set |
projectionAttributes()
Returns a set of all columns containing data necessary for this ValueSource. |
ValueMaker |
replaceColumns(ColumnRenamer renamer)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Column(Attribute attribute)
Method Detail |
---|
public Map attributeConditions(String value)
ValueMaker
For example, a ValueSource that corresponds directly to a single DB column would return a single-entry map with that column as the key, and value as the value.
The result is undefined if ValueMaker.matches(String)
is false
for the same value.
attributeConditions
in interface ValueMaker
value
- a non-null value
Attribute
keys, and string valuespublic String makeValue(ResultRow row)
ValueMaker
makeValue
in interface ValueMaker
row
- the database row
public void describeSelf(NodeSetFilter c)
describeSelf
in interface ValueMaker
public boolean matches(String value)
ValueMaker
matches
in interface ValueMaker
public Set projectionAttributes()
ValueMaker
projectionAttributes
in interface ValueMaker
public ValueMaker replaceColumns(ColumnRenamer renamer)
replaceColumns
in interface ValueMaker
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |