|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.skife.lucene.graph.GraphIndexer
Facility which provides for creating indexes on graphs of persistent objects
| Constructor Summary | |
GraphIndexer()
No metadata, StandardLibraryFilter applied to objects traversed,
visits all object and collection references, uses the base name of the class
(SimpleNameMapper, lower cased, for root names, uses SimpleValueMapper
for values, and uses the Lucene StandardAnalyzer to build the index |
|
GraphIndexer(MetadataFactory metadata)
Provides the same behavior as the GraphIndexer() constructor
except provides for metadata |
|
GraphIndexer(MetadataFactory metadata,
ObjectIndexFilter filter)
Provides the same behavior as the GraphIndexer() constructor
except provides for metadata and filtering which objects are indexed |
|
GraphIndexer(org.apache.commons.grafolia.graph.WalkerFactory walkerFactory,
MetadataFactory metadata,
org.apache.lucene.analysis.Analyzer analyzer,
ObjectIndexFilter filter,
NameMapper nameMapper,
ValueMapper valueMapper)
Fully specify the behavior of the GraphIndexer |
|
| Method Summary | |
java.io.File |
index(java.io.File index,
java.lang.Object root)
Creates a relation-aware index for everything referenced under root |
java.io.File |
index(java.lang.Object root)
Creates a relation-aware index for everything referenced under root
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphIndexer()
StandardLibraryFilter applied to objects traversed,
visits all object and collection references, uses the base name of the class
(SimpleNameMapper, lower cased, for root names, uses SimpleValueMapper
for values, and uses the Lucene StandardAnalyzer to build the index
public GraphIndexer(MetadataFactory metadata)
GraphIndexer() constructor
except provides for metadata
public GraphIndexer(MetadataFactory metadata,
ObjectIndexFilter filter)
GraphIndexer() constructor
except provides for metadata and filtering which objects are indexed
public GraphIndexer(org.apache.commons.grafolia.graph.WalkerFactory walkerFactory,
MetadataFactory metadata,
org.apache.lucene.analysis.Analyzer analyzer,
ObjectIndexFilter filter,
NameMapper nameMapper,
ValueMapper valueMapper)
walkerFactory - A Grafolia WalkerFactory which controls
the traversal of the object graphmetadata - Specify metadata on a per-instance basisanalyzer - Use a a non-standard Lucene indexerfilter - Filter which instances are indexednameMapper - Specify names for roots of search chainsvalueMapper - Specify how the values for fields in the filter are generated| Method Detail |
public java.io.File index(java.lang.Object root)
throws java.io.IOException
root
Will create a temporary file to store the index
root - root of graph to be indexed, can be a collection
java.io.IOException
public java.io.File index(java.io.File index,
java.lang.Object root)
throws java.io.IOException
root
index - Add to an already created index. Must have been previously createdroot - root of graph to be indexed, can be a collection
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||