org.skife.lucene.graph
Class IndexBuilder

java.lang.Object
  extended byorg.skife.lucene.graph.IndexBuilder
All Implemented Interfaces:
java.lang.Runnable

class IndexBuilder
extends java.lang.Object
implements java.lang.Runnable

Not Thread Safe


Constructor Summary
(package private) IndexBuilder(org.apache.commons.grafolia.graph.Graph graph, MetadataFactory metadata, ObjectIndexFilter filter, org.apache.lucene.index.IndexWriter writer, NameMapper names, ValueMapper values)
          Be sure to call run after instantiation to build the actual index!
 
Method Summary
static boolean isIndexedProperty(java.beans.PropertyDescriptor property)
          Returns true if the property should be indexed, false otherwise.
 void run()
          Build the actual index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexBuilder

IndexBuilder(org.apache.commons.grafolia.graph.Graph graph,
             MetadataFactory metadata,
             ObjectIndexFilter filter,
             org.apache.lucene.index.IndexWriter writer,
             NameMapper names,
             ValueMapper values)
Be sure to call run after instantiation to build the actual index!

Method Detail

run

public void run()
Build the actual index

Specified by:
run in interface java.lang.Runnable

isIndexedProperty

public static boolean isIndexedProperty(java.beans.PropertyDescriptor property)
Returns true if the property should be indexed, false otherwise. Basically properties defined on standard library base classes and write-only properties



Copyright © 2004 Brian McCallister. All Rights Reserved.