|
||||||||||
| 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.ByPartIndexer
public class ByPartIndexer
Represents by the value of a part in a composite type.
| Constructor Summary | |
|---|---|
ByPartIndexer()
|
|
ByPartIndexer(HGHandle type,
java.lang.String dimensionPath)
Convenience constructor that allows passing a dot separated dimension path that is converted to a String[]. |
|
ByPartIndexer(HGHandle type,
java.lang.String[] dimensionPath)
|
|
| 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
return by this indexer to/from a byte[]. |
java.lang.String[] |
getDimensionPath()
|
java.lang.Object |
getKey(HyperGraph graph,
java.lang.Object atom)
Return an index key for the given atom. |
int |
hashCode()
Declared to enforce implementation. |
void |
setDimensionPath(java.lang.String[] dimensionPath)
|
| 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 ByPartIndexer()
public ByPartIndexer(HGHandle type,
java.lang.String dimensionPath)
Convenience constructor that allows passing a dot separated dimension path
that is converted to a String[].
type - The type of the atoms to be indexed.dimensionPath - The dimension path in dot format (e.g. "person.address.street")
public ByPartIndexer(HGHandle type,
java.lang.String[] dimensionPath)
| Method Detail |
|---|
public java.lang.String[] getDimensionPath()
public void setDimensionPath(java.lang.String[] dimensionPath)
public 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.
getComparator in class HGIndexergraph - The current HyperGraph instance.
public ByteArrayConverter<?> getConverter(HyperGraph graph)
HGIndexerReturn a ByteArrayConverter capable of translating keys
return 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 java.lang.Object getKey(HyperGraph graph,
java.lang.Object atom)
HGIndexerReturn 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 boolean equals(java.lang.Object other)
HGIndexerDeclared to enforce implementation.
equals in class HGIndexerpublic int hashCode()
HGIndexerDeclared to enforce implementation.
hashCode in class HGIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||