public class OracleDirectory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OracleDirectory.DirectoryType
It denotes the type of directories for storing Lucene indexes.
|
| Constructor and Description |
|---|
OracleDirectory(String directoryName, org.apache.lucene.store.Directory[] directories)
Constructs an OracleDirectory object.
|
OracleDirectory(String directoryName, OracleDirectory.DirectoryType directoryType, String[] locations, int numSubDirs)
Constructs an OracleDirectory object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the Oracle Directory and all its sub-directories.
|
OracleDirectory.DirectoryType |
getDirectoryType()
Get the directory type of this OracleDirectory
|
static OracleDirectory |
getFSOracleDirectory(String directoryName, String[] locations)
Creates an
OracleDirectory object using FSDirectory for the specified number of sub-directories. |
static OracleDirectory |
getFSOracleDirectory(String directoryName, String[] location, int numSubDirs)
Creates an
OracleDirectory object using FSDirectory sub-directories. |
static OracleDirectory |
getInstance(String directoryName, org.apache.lucene.store.Directory[] directories)
Creates an
OracleDirectory object from the specified set of sub-directories. |
org.apache.lucene.store.Directory |
getSubDirectory(int index)
Gets the
Directory object associated to the specified sub-directory. |
int |
size()
Gets the number of sub-directories handled by this OracleDirectory.
|
public OracleDirectory(String directoryName, org.apache.lucene.store.Directory[] directories) throws IOException
directoryName - the name of this directory.directories - a Directory array object.IOExceptionpublic OracleDirectory(String directoryName, OracleDirectory.DirectoryType directoryType, String[] locations, int numSubDirs) throws OracleIndexException
directoryName - the name of this directory.directoryType - the type of Directories to use (FS, MMap, JDBC)locations - the location(s) where the sub-directories will be created.numSubDirs - the number of sub-directories to use in this Directory.OracleIndexExceptionpublic void close()
public OracleDirectory.DirectoryType getDirectoryType()
public static OracleDirectory getFSOracleDirectory(String directoryName, String[] locations) throws OracleIndexException
OracleDirectory object using FSDirectory for the specified number of sub-directories.directoryName - the name of this directory.locations - the file path where the sub-directories will rely.Directory object.OracleIndexExceptionpublic static OracleDirectory getFSOracleDirectory(String directoryName, String[] location, int numSubDirs) throws OracleIndexException
OracleDirectory object using FSDirectory sub-directories.directoryName - the name of this directory.location - the location(s) where the sub-directories will be created.numSubDirs - the number of sub-directories to use in this directory.OracleDirectory object.IOExceptionOracleIndexExceptionpublic static OracleDirectory getInstance(String directoryName, org.apache.lucene.store.Directory[] directories) throws IOException
OracleDirectory object from the specified set of sub-directories.directoryName - the name of this directory.directories - an array of Directory.OracleDirectory object.IOException
public org.apache.lucene.store.Directory getSubDirectory(int index)
throws OracleIndexException
Directory object associated to the specified sub-directory.index - the number of the sub-directory to retrieve.Directory object.OracleIndexExceptionpublic int size()
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.