org.neo4j.index.impl.lucene
Class LuceneIndexImplementation

java.lang.Object
  extended by org.neo4j.graphdb.index.IndexImplementation
      extended by org.neo4j.index.impl.lucene.LuceneIndexImplementation

public class LuceneIndexImplementation
extends IndexImplementation


Field Summary
static int DEFAULT_LAZY_THRESHOLD
           
static Map<String,String> EXACT_CONFIG
           
static Map<String,String> FULLTEXT_CONFIG
           
static String SERVICE_NAME
           
 
Constructor Summary
LuceneIndexImplementation(GraphDatabaseService db, Config config)
           
 
Method Summary
 boolean configMatches(Map<String,String> storedConfig, Map<String,String> config)
           
 Map<String,String> fillInDefaults(Map<String,String> source)
          Fills in default configuration parameters for indexes provided from this index provider.
 String getDataSourceName()
          Returns the name of the XA data source coupled with this index provider.
 Index<Node> nodeIndex(String indexName, Map<String,String> config)
          Returns an Index for Nodes for the name indexName with the given config.
 RelationshipIndex relationshipIndex(String indexName, Map<String,String> config)
          Returns an Index for Relationships for the name indexName with the given config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values

EXACT_CONFIG

public static final Map<String,String> EXACT_CONFIG

FULLTEXT_CONFIG

public static final Map<String,String> FULLTEXT_CONFIG

DEFAULT_LAZY_THRESHOLD

public static final int DEFAULT_LAZY_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

LuceneIndexImplementation

public LuceneIndexImplementation(GraphDatabaseService db,
                                 Config config)
Method Detail

nodeIndex

public Index<Node> nodeIndex(String indexName,
                             Map<String,String> config)
Description copied from class: IndexImplementation
Returns an Index for Nodes for the name indexName with the given config. The config Map can contain any provider-implementation-specific data that can control how an index behaves.

Specified by:
nodeIndex in class IndexImplementation
Parameters:
indexName - the name of the index.
config - a Map of configuration parameters to use with the index. Parameters can be anything and are implementation-specific. This map represents how the configuration looks right now, they might be modified later using IndexManager.setConfiguration(Index, String, String) or IndexManager.removeConfiguration(Index, String).
Returns:
the Index corresponding to the indexName and config.

relationshipIndex

public RelationshipIndex relationshipIndex(String indexName,
                                           Map<String,String> config)
Description copied from class: IndexImplementation
Returns an Index for Relationships for the name indexName with the given config. The config Map can contain any provider-implementation-specific data that can control how an index behaves.

Specified by:
relationshipIndex in class IndexImplementation
Parameters:
indexName - the name of the index.
config - a Map of configuration parameters to use with the index. Parameters can be anything and are implementation-specific. This map represents how the configuration looks right now, they might be modified later using IndexManager.setConfiguration(Index, String, String) or IndexManager.removeConfiguration(Index, String).
Returns:
the Index corresponding to the indexName and config. The return index is a RelationshipIndex with additional query methods for efficiently filtering hits with respect to start/end node of the relationships.

fillInDefaults

public Map<String,String> fillInDefaults(Map<String,String> source)
Description copied from class: IndexImplementation
Fills in default configuration parameters for indexes provided from this index provider.

Specified by:
fillInDefaults in class IndexImplementation
Parameters:
source - the configuration map to complete with defaults.
Returns:
a Map filled with decent defaults for an index from this index provider.

configMatches

public boolean configMatches(Map<String,String> storedConfig,
                             Map<String,String> config)
Specified by:
configMatches in class IndexImplementation

getDataSourceName

public String getDataSourceName()
Description copied from class: IndexImplementation
Returns the name of the XA data source coupled with this index provider.

Specified by:
getDataSourceName in class IndexImplementation
Returns:
the name of the XA data source coupled with this index provider.


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.