public class OracleDirectory
extends java.lang.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(java.lang.String directoryName, org.apache.lucene.store.Directory[] directories)
Constructs an OracleDirectory object.
|
OracleDirectory(java.lang.String directoryName, OracleDirectory.DirectoryType directoryType, java.lang.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(java.lang.String directoryName, java.lang.String[] locations)
Creates an
OracleDirectory object using FSDirectory for the specified number of sub-directories. |
static OracleDirectory |
getFSOracleDirectory(java.lang.String directoryName, java.lang.String[] location, int numSubDirs)
Creates an
OracleDirectory object using FSDirectory sub-directories. |
static OracleDirectory |
getInstance(java.lang.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(java.lang.String directoryName, org.apache.lucene.store.Directory[] directories) throws java.io.IOException
directoryName
- the name of this directory.directories
- a Directory
array object.java.io.IOException
public OracleDirectory(java.lang.String directoryName, OracleDirectory.DirectoryType directoryType, java.lang.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.OracleIndexException
public void close()
public OracleDirectory.DirectoryType getDirectoryType()
public static OracleDirectory getFSOracleDirectory(java.lang.String directoryName, java.lang.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.OracleIndexException
public static OracleDirectory getFSOracleDirectory(java.lang.String directoryName, java.lang.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.java.io.IOException
OracleIndexException
public static OracleDirectory getInstance(java.lang.String directoryName, org.apache.lucene.store.Directory[] directories) throws java.io.IOException
OracleDirectory
object from the specified set of sub-directories.directoryName
- the name of this directory.directories
- an array of Directory
.OracleDirectory
object.java.io.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.OracleIndexException
public int size()
Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.