|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hypergraphdb.indexing.HGIndexer
org.hypergraphdb.indexing.HGValueIndexer
public abstract class HGValueIndexer
An indexer that not only determines the key in an index entry, but the value
as well. By default, HGIndexer implementation provide a key by
which to index hypergraph atoms. In other words, atoms are the "default" values
for index entries. A HGValueIndexer provides also the value in an
index entry in cases where it is not the atom itself.
| Constructor Summary | |
|---|---|
HGValueIndexer()
|
|
HGValueIndexer(HGHandle type)
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
getValue(HyperGraph graph,
java.lang.Object atom)
Return the value of an index entry based on the passed in atom. |
abstract ByteArrayConverter<?> |
getValueConverter(HyperGraph graph)
Return a ByteArrayConverter capable of converting index
entry values to/from byte arrays. |
| Methods inherited from class org.hypergraphdb.indexing.HGIndexer |
|---|
equals, getComparator, getConverter, getKey, getType, hashCode, setType |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HGValueIndexer()
public HGValueIndexer(HGHandle type)
| Method Detail |
|---|
public abstract java.lang.Object getValue(HyperGraph graph,
java.lang.Object atom)
Return the value of an index entry based on the passed in atom.
public abstract ByteArrayConverter<?> getValueConverter(HyperGraph graph)
Return a ByteArrayConverter capable of converting index
entry values to/from byte arrays.
graph -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||