|
||||||||||
| 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
org.hypergraphdb.indexing.TargetToTargetIndexer
public class TargetToTargetIndexer
| Constructor Summary | |
|---|---|
TargetToTargetIndexer()
|
|
TargetToTargetIndexer(HGHandle type,
int fromTarget,
int toTarget)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Declared to enforce implementation. |
java.util.Comparator<?> |
getComparator(HyperGraph graph)
Return a comparator used to compare key values return by this indexer. |
ByteArrayConverter<?> |
getConverter(HyperGraph graph)
Return a ByteArrayConverter capable of translating keys
returned by this indexer to/from a byte[]. |
int |
getFromTarget()
|
java.lang.Object |
getKey(HyperGraph graph,
java.lang.Object atom)
Returns an index key for the given atom. |
int |
getToTarget()
|
java.lang.Object |
getValue(HyperGraph graph,
java.lang.Object atom)
Return the value of an index entry based on the passed in atom. |
ByteArrayConverter<HGHandle> |
getValueConverter(HyperGraph graph)
Return a ByteArrayConverter capable of converting index
entry values to/from byte arrays. |
int |
hashCode()
Declared to enforce implementation. |
void |
setFromTarget(int fromTarget)
|
void |
setToTarget(int toTarget)
|
| Methods inherited from class org.hypergraphdb.indexing.HGIndexer |
|---|
getType, setType |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TargetToTargetIndexer()
public TargetToTargetIndexer(HGHandle type,
int fromTarget,
int toTarget)
| Method Detail |
|---|
public int getFromTarget()
public void setFromTarget(int fromTarget)
public int getToTarget()
public void setToTarget(int toTarget)
public java.lang.Object getKey(HyperGraph graph,
java.lang.Object atom)
HGIndexerReturns an index key for the given atom.
getKey in class HGIndexergraph - The current HyperGraph instance.atom - The atom being indexed.
byte[],
a non-null ByteArrayConverter must be provided by the
getConverter method.
public java.lang.Object getValue(HyperGraph graph,
java.lang.Object atom)
HGValueIndexerReturn the value of an index entry based on the passed in atom.
getValue in class HGValueIndexerpublic ByteArrayConverter<HGHandle> getValueConverter(HyperGraph graph)
HGValueIndexer
Return a ByteArrayConverter capable of converting index
entry values to/from byte arrays.
getValueConverter in class HGValueIndexerpublic java.util.Comparator<?> getComparator(HyperGraph graph)
HGIndexer
Return a comparator used to compare key values return by this indexer.
Note that the comparator's compare method will be invoked
with byte[] parameters. It is the comparator's responsibility
to convert them to the appropriate run-time type for performing the comparison
if need be.
The method may return null if a default byte-by-byte comparator is to be
used.
getComparator in class HGIndexergraph - The current HyperGraph instance.
null to use a default byte-by-byte comparison of keys.public ByteArrayConverter<?> getConverter(HyperGraph graph)
HGIndexerReturn a ByteArrayConverter capable of translating keys
returned by this indexer to/from a byte[].
getConverter in class HGIndexergraph - The current HyperGraph instance.
ByteArrayConverter for type of index keys
return by this indexer or null if keys are of type byte[].public int hashCode()
HGIndexerDeclared to enforce implementation.
hashCode in class HGIndexerpublic boolean equals(java.lang.Object other)
HGIndexerDeclared to enforce implementation.
equals in class HGIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||