com.atlassian.jira.sharing.index
Class IndexPathDirectoryFactory

java.lang.Object
  extended by com.atlassian.jira.sharing.index.IndexPathDirectoryFactory
All Implemented Interfaces:
DirectoryFactory, com.atlassian.util.concurrent.Function<SharedEntity.TypeDescriptor<?>,org.apache.lucene.store.Directory>

public class IndexPathDirectoryFactory
extends Object
implements DirectoryFactory

An implementation that uses the IndexPathManager as its way of getting a Directory


Constructor Summary
IndexPathDirectoryFactory(IndexPathManager pathManager, LuceneDirectoryUtils luceneDirectoryUtils)
           
 
Method Summary
 org.apache.lucene.store.Directory get(SharedEntity.TypeDescriptor<?> type)
          Resolves an output where an input is given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexPathDirectoryFactory

public IndexPathDirectoryFactory(IndexPathManager pathManager,
                                 LuceneDirectoryUtils luceneDirectoryUtils)
Method Detail

get

public org.apache.lucene.store.Directory get(SharedEntity.TypeDescriptor<?> type)
Description copied from interface: Function
Resolves an output where an input is given.

Specified by:
get in interface com.atlassian.util.concurrent.Function<SharedEntity.TypeDescriptor<?>,org.apache.lucene.store.Directory>
Parameters:
type - an object of type D.
Returns:
the output of type R.


Copyright © 2002-2013 Atlassian. All Rights Reserved.