Package | Description |
---|---|
org.apache.lucene.analysis.hunspell |
Stemming TokenFilter using a Java implementation of the
Hunspell stemming algorithm.
|
org.apache.lucene.classification.utils |
Utilities for evaluation, data preparation, etc.
|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene53 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene62 |
Lucene 6.2 file format.
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.search.suggest.fst |
Finite-state based autosuggest.
|
org.apache.lucene.search.suggest.tst |
Ternary Search Tree based autosuggest.
|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.bkd |
Block KD-tree, implementing the generic spatial data structure described in
this paper.
|
org.apache.solr.core |
Core classes implementing Solr internals and the management of
SolrCore s |
org.apache.solr.core.backup.repository |
BackupRepository Providing backup/restore
repository interfaces to plug different storage systems |
org.apache.solr.core.snapshots |
Core classes for Solr's persistent snapshots functionality
|
org.apache.solr.handler |
Concrete implementations of
SolrRequestHandler |
org.apache.solr.spelling |
APIs and classes used by the
SpellCheckComponent |
org.apache.solr.store.blockcache |
An HDFS blockcache implementation.
|
org.apache.solr.store.hdfs |
An HDFS Directory implementation.
|
org.apache.solr.update |
APIs and classes for managing index updates
|
Constructor and Description |
---|
Dictionary(Directory tempDir,
String tempFileNamePrefix,
InputStream affix,
InputStream dictionary)
Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix
and dictionary files.
|
Dictionary(Directory tempDir,
String tempFileNamePrefix,
InputStream affix,
List<InputStream> dictionaries,
boolean ignoreCase)
Creates a new Dictionary containing the information read from the provided InputStreams to hunspell affix
and dictionary files.
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetSplitter.split(IndexReader originalIndex,
Directory trainingIndex,
Directory testIndex,
Directory crossValidationIndex,
Analyzer analyzer,
boolean termVectors,
String classFieldName,
String... fieldNames)
Split a given index into 3 indexes for training, test and cross validation tasks respectively
|
Modifier and Type | Method and Description |
---|---|
abstract Directory |
CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
Modifier and Type | Method and Description |
---|---|
abstract StoredFieldsReader |
StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Returns a
StoredFieldsReader to load stored
fields. |
abstract StoredFieldsWriter |
StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Returns a
StoredFieldsWriter to write stored
fields. |
abstract Directory |
CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
abstract FieldInfos |
FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext)
|
abstract SegmentInfo |
SegmentInfoFormat.read(Directory directory,
String segmentName,
byte[] segmentID,
IOContext context)
Read
SegmentInfo data from a directory. |
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Read live docs bits.
|
abstract TermVectorsReader |
TermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context)
Returns a
TermVectorsReader to read term
vectors. |
abstract TermVectorsWriter |
TermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context)
Returns a
TermVectorsWriter to write term
vectors. |
abstract void |
SegmentInfoFormat.write(Directory dir,
SegmentInfo info,
IOContext ioContext)
Write
SegmentInfo data. |
abstract void |
CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
abstract void |
FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
abstract void |
LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context)
Persist live docs bits.
|
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
CompressingStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
CompressingStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
TermVectorsReader |
CompressingTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
CompressingTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
Constructor and Description |
---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingStoredFieldsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize,
int maxDocsPerChunk,
int blockSize)
Sole constructor.
|
CompressingTermVectorsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
CompressingTermVectorsWriter(Directory directory,
SegmentInfo si,
String segmentSuffix,
IOContext context,
String formatName,
CompressionMode compressionMode,
int chunkSize,
int blockSize)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
Directory |
Lucene50CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
Lucene50StoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
Lucene50StoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
Directory |
Lucene50CompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
FieldInfos |
Lucene50FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context) |
SegmentInfo |
Lucene50SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context)
Deprecated.
|
Bits |
Lucene50LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
void |
Lucene50CompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
Lucene50SegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext)
Deprecated.
|
void |
Lucene50FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
void |
Lucene50LiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
FieldInfos |
Lucene60FieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context) |
void |
Lucene60FieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
Lucene62SegmentInfoFormat.read(Directory dir,
String segment,
byte[] segmentID,
IOContext context) |
void |
Lucene62SegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
Modifier and Type | Method and Description |
---|---|
Directory |
SimpleTextCompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
StoredFieldsReader |
SimpleTextStoredFieldsFormat.fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
StoredFieldsWriter |
SimpleTextStoredFieldsFormat.fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context) |
Directory |
SimpleTextCompoundFormat.getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context) |
FieldInfos |
SimpleTextFieldInfosFormat.read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext iocontext) |
SegmentInfo |
SimpleTextSegmentInfoFormat.read(Directory directory,
String segmentName,
byte[] segmentID,
IOContext context) |
Bits |
SimpleTextLiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
TermVectorsReader |
SimpleTextTermVectorsFormat.vectorsReader(Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
IOContext context) |
TermVectorsWriter |
SimpleTextTermVectorsFormat.vectorsWriter(Directory directory,
SegmentInfo segmentInfo,
IOContext context) |
void |
SimpleTextSegmentInfoFormat.write(Directory dir,
SegmentInfo si,
IOContext ioContext) |
void |
SimpleTextCompoundFormat.write(Directory dir,
SegmentInfo si,
IOContext context) |
void |
SimpleTextFieldInfosFormat.write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context) |
void |
SimpleTextLiveDocsFormat.writeLiveDocs(MutableBits bits,
Directory dir,
SegmentCommitInfo info,
int newDelCount,
IOContext context) |
Constructor and Description |
---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
SimpleTextStoredFieldsWriter(Directory directory,
String segment,
IOContext context) |
SimpleTextTermVectorsReader(Directory directory,
SegmentInfo si,
IOContext context) |
SimpleTextTermVectorsWriter(Directory directory,
String segment,
IOContext context) |
Modifier and Type | Field and Description |
---|---|
Directory |
SegmentInfo.dir
Where this segment resides.
|
Directory |
CheckIndex.Status.dir
Directory index is in.
|
Directory |
SegmentWriteState.directory
Directory where this segment will be written
to. |
Directory |
SegmentReadState.directory
Directory where this segment is read from. |
protected Directory |
DirectoryReader.directory
The index directory.
|
Modifier and Type | Method and Description |
---|---|
Directory |
SegmentReader.directory()
Returns the directory this index resides in.
|
Directory |
DirectoryReader.directory()
Returns the directory this index resides in.
|
Directory |
MergePolicy.MergeException.getDirectory()
Returns the
Directory of the index that hit
the exception. |
Directory |
IndexWriter.getDirectory()
Returns the Directory used by this index.
|
abstract Directory |
IndexCommit.getDirectory()
Returns the
Directory for the index. |
Modifier and Type | Method and Description |
---|---|
long |
IndexWriter.addIndexes(Directory... dirs)
Adds all segments from an array of indexes into this index.
|
void |
SegmentInfos.commit(Directory dir)
Writes and syncs to the Directory dir, taking care to
remove the segments file on exception
|
static long |
SegmentInfos.getLastCommitGeneration(Directory directory)
Get the generation of the most recent commit to the
index in this directory (N in the segments_N file).
|
static String |
SegmentInfos.getLastCommitSegmentsFileName(Directory directory)
Get the filename of the segments_N file for the most
recent commit to the index in this Directory.
|
protected void |
ConcurrentMergeScheduler.handleMergeException(Directory dir,
Throwable exc)
Called when an exception is hit in a background merge
thread
|
static boolean |
DirectoryReader.indexExists(Directory directory)
Returns
true if an index likely exists at
the specified directory. |
static boolean |
IndexWriter.isLocked(Directory directory)
Deprecated.
Use of this method can only lead to race conditions. Try
to actually obtain a lock instead.
|
static List<IndexCommit> |
DirectoryReader.listCommits(Directory dir)
Returns all commit points that exist in the Directory.
|
static DirectoryReader |
DirectoryReader.open(Directory directory)
Returns a IndexReader reading the index in the given
Directory
|
static DirectoryReader |
StandardDirectoryReader.open(Directory directory,
SegmentInfos infos,
List<? extends LeafReader> oldReaders)
This constructor is only used for
StandardDirectoryReader.doOpenIfChanged(SegmentInfos) , as well as NRT replication. |
static SegmentInfos |
SegmentInfos.readCommit(Directory directory,
ChecksumIndexInput input,
long generation)
Read the commit from the provided
ChecksumIndexInput . |
static SegmentInfos |
SegmentInfos.readCommit(Directory directory,
String segmentFileName)
Read a particular segmentFileName.
|
static SegmentInfos |
SegmentInfos.readLatestCommit(Directory directory)
Find the latest commit (
segments_N file ) and
load all SegmentCommitInfo s. |
String |
MergePolicy.MergeSpecification.segString(Directory dir)
Returns a description of the merges in this
specification.
|
void |
MultiPassIndexSplitter.split(IndexReader in,
Directory[] outputs,
boolean seq)
Split source index into multiple parts.
|
void |
SegmentInfos.write(Directory directory,
IndexOutput out)
Write ourselves to the provided
IndexOutput |
Constructor and Description |
---|
CheckIndex(Directory dir)
Create a new CheckIndex on the directory.
|
CheckIndex(Directory dir,
Lock writeLock)
Expert: create a directory with the specified lock.
|
DirectoryReader(Directory directory,
LeafReader[] segmentReaders)
Expert: Constructs a
DirectoryReader on the given subReaders. |
FindSegmentsFile(Directory directory)
Sole constructor.
|
IndexUpgrader(Directory dir)
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexUpgrader(Directory dir,
IndexWriterConfig iwc,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
config. |
IndexUpgrader(Directory dir,
InfoStream infoStream,
boolean deletePriorCommits)
Creates index upgrader on the given directory, using an
IndexWriter using the given
matchVersion . |
IndexWriter(Directory d,
IndexWriterConfig conf)
Constructs a new IndexWriter per the settings given in
conf . |
MergeException(String message,
Directory dir)
Create a
MergeException . |
MergeException(Throwable exc,
Directory dir)
Create a
MergeException . |
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,
Directory dir)
PersistentSnapshotDeletionPolicy wraps another
IndexDeletionPolicy to enable flexible
snapshotting, passing IndexWriterConfig.OpenMode.CREATE_OR_APPEND
by default. |
PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,
Directory dir,
IndexWriterConfig.OpenMode mode)
PersistentSnapshotDeletionPolicy wraps another
IndexDeletionPolicy to enable flexible snapshotting. |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Query docsInFirstIndex)
Split an index based on a
Query . |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Query docsInFirstIndex,
IndexWriterConfig config1,
IndexWriterConfig config2) |
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Term midTerm)
Split an index based on a given primary key term
and a 'middle' term.
|
PKIndexSplitter(Directory input,
Directory dir1,
Directory dir2,
Term midTerm,
IndexWriterConfig config1,
IndexWriterConfig config2) |
ReaderManager(Directory dir)
Creates and returns a new ReaderManager from the given
Directory . |
SegmentInfo(Directory dir,
Version version,
String name,
int maxDoc,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics,
byte[] id,
Map<String,String> attributes,
Sort indexSort)
Construct a new complete SegmentInfo instance from input.
|
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context)
Create a
SegmentReadState . |
SegmentReadState(Directory dir,
SegmentInfo info,
FieldInfos fieldInfos,
IOContext context,
String segmentSuffix)
Create a
SegmentReadState . |
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context)
Sole constructor.
|
SegmentWriteState(InfoStream infoStream,
Directory directory,
SegmentInfo segmentInfo,
FieldInfos fieldInfos,
org.apache.lucene.index.BufferedUpdates segUpdates,
IOContext context,
String segmentSuffix)
Constructor which takes segment suffix.
|
Modifier and Type | Method and Description |
---|---|
static void |
GetTermInfo.getTermInfo(Directory dir,
Term term) |
Constructor and Description |
---|
SearcherManager(Directory dir,
SearcherFactory searcherFactory)
Creates and returns a new SearcherManager from the given
Directory . |
Modifier and Type | Method and Description |
---|---|
void |
SpellChecker.setSpellIndex(Directory spellIndexDir)
Use a different index as the spell checker index or re-open
the existing index if
spellIndex is the same value
as given in the constructor. |
Constructor and Description |
---|
SpellChecker(Directory spellIndex)
Use the given directory as a spell checker index with a
LevensteinDistance as the default StringDistance . |
SpellChecker(Directory spellIndex,
StringDistance sd)
Use the given directory as a spell checker index.
|
SpellChecker(Directory spellIndex,
StringDistance sd,
Comparator<SuggestWord> comparator)
Use the given directory as a spell checker index with the given
StringDistance measure
and the given Comparator for sorting the results. |
Constructor and Description |
---|
SortedInputIterator(Directory tempDir,
String tempFileNamePrefix,
InputIterator source)
Creates a new sorted wrapper, using natural order
for sorting.
|
SortedInputIterator(Directory tempDir,
String tempFileNamePrefix,
InputIterator source,
Comparator<BytesRef> comparator)
Creates a new sorted wrapper, sorting by BytesRef
(ascending) then cost (ascending).
|
Modifier and Type | Method and Description |
---|---|
protected Directory |
AnalyzingInfixSuggester.getDirectory(Path path)
Subclass can override to choose a specific
Directory implementation. |
Constructor and Description |
---|
AnalyzingInfixSuggester(Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingInfixSuggester(Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
boolean commitOnBuild)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingInfixSuggester(Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
boolean commitOnBuild,
boolean allTermsRequired,
boolean highlight)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingInfixSuggester(Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
boolean commitOnBuild,
boolean allTermsRequired,
boolean highlight,
boolean closeIndexWriterOnBuild)
Create a new instance, loading from a previously built
AnalyzingInfixSuggester directory, if it exists.
|
AnalyzingSuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer analyzer)
|
AnalyzingSuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer)
|
AnalyzingSuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int options,
int maxSurfaceFormsPerAnalyzedForm,
int maxGraphExpansions,
boolean preservePositionIncrements)
Creates a new suggester.
|
BlendedInfixSuggester(Directory dir,
Analyzer analyzer)
Create a new instance, loading from a previously built
directory, if it exists.
|
BlendedInfixSuggester(Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
BlendedInfixSuggester.BlenderType blenderType,
int numFactor,
boolean commitOnBuild)
Create a new instance, loading from a previously built
directory, if it exists.
|
BlendedInfixSuggester(Directory dir,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int minPrefixChars,
BlendedInfixSuggester.BlenderType blenderType,
int numFactor,
Double exponent,
boolean commitOnBuild,
boolean allTermsRequired,
boolean highlight)
Create a new instance, loading from a previously built
directory, if it exists.
|
FuzzySuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer analyzer)
Creates a
FuzzySuggester instance initialized with default values. |
FuzzySuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer)
Creates a
FuzzySuggester instance with an index and query analyzer initialized with default values. |
FuzzySuggester(Directory tempDir,
String tempFileNamePrefix,
Analyzer indexAnalyzer,
Analyzer queryAnalyzer,
int options,
int maxSurfaceFormsPerAnalyzedForm,
int maxGraphExpansions,
boolean preservePositionIncrements,
int maxEdits,
boolean transpositions,
int nonFuzzyPrefix,
int minFuzzyLength,
boolean unicodeAware)
Creates a
FuzzySuggester instance. |
Constructor and Description |
---|
FSTCompletionLookup(Directory tempDir,
String tempFileNamePrefix)
This constructor prepares for creating a suggested FST using the
FSTCompletionLookup.build(InputIterator) method. |
FSTCompletionLookup(Directory tempDir,
String tempFileNamePrefix,
FSTCompletion completion,
boolean exactMatchFirst)
This constructor takes a pre-built automaton.
|
FSTCompletionLookup(Directory tempDir,
String tempFileNamePrefix,
int buckets,
boolean exactMatchFirst)
This constructor prepares for creating a suggested FST using the
FSTCompletionLookup.build(InputIterator) method. |
WFSTCompletionLookup(Directory tempDir,
String tempFileNamePrefix)
|
WFSTCompletionLookup(Directory tempDir,
String tempFileNamePrefix,
boolean exactFirst)
Creates a new suggester.
|
Constructor and Description |
---|
TSTLookup(Directory tempDir,
String tempFileNamePrefix)
Creates a new TSTLookup, for building.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDirectory
Base implementation for a concrete
Directory that uses a LockFactory for locking. |
class |
FileSwitchDirectory
Expert: A Directory instance that switches files between
two other Directory instances.
|
class |
FilterDirectory
Directory implementation that delegates calls to another directory.
|
class |
FSDirectory
Base class for Directory implementations that store index
files in the file system.
|
class |
HardlinkCopyDirectoryWrapper
This directory wrapper overrides
copyFrom(Directory, String, String, IOContext) in order
to optionally use a hard-link instead of a full byte by byte file copy if applicable. |
class |
LockValidatingDirectoryWrapper
This class makes a best-effort check that a provided
Lock
is valid before any destructive filesystem operation. |
class |
MMapDirectory
File-based
Directory implementation that uses
mmap for reading, and FSDirectory.FSIndexOutput for writing. |
class |
NativeUnixDirectory
A
Directory implementation for all Unixes that uses
DIRECT I/O to bypass OS level IO caching during
merging. |
class |
NIOFSDirectory
An
FSDirectory implementation that uses java.nio's FileChannel's
positional read, which allows multiple threads to read from the same file
without synchronizing. |
class |
NRTCachingDirectory
Wraps a
RAMDirectory
around any provided delegate directory, to
be used during NRT search. |
class |
RAFDirectory
A straightforward implementation of
FSDirectory
using java.io.RandomAccessFile. |
class |
RAMDirectory
A memory-resident
Directory implementation. |
class |
SimpleFSDirectory
A straightforward implementation of
FSDirectory
using Files.newByteChannel(Path, java.nio.file.OpenOption...) . |
class |
SleepingLockWrapper
Directory that wraps another, and that sleeps and retries
if obtaining the lock fails.
|
class |
TrackingDirectoryWrapper
A delegating Directory that records which files were
written to and deleted.
|
class |
WindowsDirectory
Native
Directory implementation for Microsoft Windows. |
Modifier and Type | Field and Description |
---|---|
protected Directory |
FilterDirectory.in |
Modifier and Type | Method and Description |
---|---|
Directory |
FilterDirectory.getDelegate()
Return the wrapped
Directory . |
Directory |
FileSwitchDirectory.getPrimaryDir()
Return the primary directory
|
Directory |
FileSwitchDirectory.getSecondaryDir()
Return the secondary directory
|
static Directory |
FilterDirectory.unwrap(Directory dir)
Get the wrapped instance by
dir as long as this reader is
an instance of FilterDirectory . |
Modifier and Type | Method and Description |
---|---|
void |
HardlinkCopyDirectoryWrapper.copyFrom(Directory from,
String srcFile,
String destFile,
IOContext context) |
void |
TrackingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
LockValidatingDirectoryWrapper.copyFrom(Directory from,
String src,
String dest,
IOContext context) |
void |
Directory.copyFrom(Directory from,
String src,
String dest,
IOContext context)
Copies the file src in from to this directory under the new
file name dest.
|
Lock |
VerifyingLockFactory.obtainLock(Directory dir,
String lockName) |
Lock |
SingleInstanceLockFactory.obtainLock(Directory dir,
String lockName) |
Lock |
NoLockFactory.obtainLock(Directory dir,
String lockName) |
abstract Lock |
LockFactory.obtainLock(Directory dir,
String lockName)
Return a new obtained Lock instance identified by lockName.
|
Lock |
FSLockFactory.obtainLock(Directory dir,
String lockName) |
static Directory |
FilterDirectory.unwrap(Directory dir)
Get the wrapped instance by
dir as long as this reader is
an instance of FilterDirectory . |
Constructor and Description |
---|
FileSwitchDirectory(Set<String> primaryExtensions,
Directory primaryDir,
Directory secondaryDir,
boolean doClose) |
FilterDirectory(Directory in)
Sole constructor, typically called from sub-classes.
|
HardlinkCopyDirectoryWrapper(Directory in)
Creates a new HardlinkCopyDirectoryWrapper delegating to the given directory
|
LockValidatingDirectoryWrapper(Directory in,
Lock writeLock) |
NativeUnixDirectory(Path path,
Directory delegate)
Create a new NIOFSDirectory for the named location with
FSLockFactory.getDefault() . |
NativeUnixDirectory(Path path,
int mergeBufferSize,
long minBytesDirect,
LockFactory lockFactory,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NativeUnixDirectory(Path path,
LockFactory lockFactory,
Directory delegate)
Create a new NIOFSDirectory for the named location.
|
NRTCachingDirectory(Directory delegate,
double maxMergeSizeMB,
double maxCachedMB)
We will cache a newly created output if 1) it's a
flush or a merge and the estimated size of the merged segment is
<= maxMergeSizeMB , and 2) the total cached bytes is
<= maxCachedMB |
SleepingLockWrapper(Directory delegate,
long lockWaitTimeout)
Create a new SleepingLockFactory
|
SleepingLockWrapper(Directory delegate,
long lockWaitTimeout,
long pollInterval)
Create a new SleepingLockFactory
|
TrackingDirectoryWrapper(Directory in) |
Modifier and Type | Method and Description |
---|---|
Directory |
OfflineSorter.getDirectory()
Returns the
Directory we use to create temp files. |
Modifier and Type | Method and Description |
---|---|
static Class<? extends Directory> |
CommandLineUtil.loadDirectoryClass(String clazzName)
Loads a specific Directory implementation
|
Modifier and Type | Method and Description |
---|---|
static void |
IOUtils.deleteFiles(Directory dir,
Collection<String> names)
Deletes all given file names.
|
static void |
IOUtils.deleteFiles(Directory dir,
String... files) |
static void |
IOUtils.deleteFilesIgnoringExceptions(Directory dir,
Collection<String> files)
Deletes all given files, suppressing all thrown IOExceptions.
|
static void |
IOUtils.deleteFilesIgnoringExceptions(Directory dir,
String... files) |
static boolean |
IOUtils.spins(Directory dir)
If the dir is an
FSDirectory or wraps one via possibly
nested FilterDirectory or FileSwitchDirectory ,
this returns IOUtils.spins(Path) for the wrapped directory,
else, true. |
Constructor and Description |
---|
OfflineSorter(Directory dir,
String tempFileNamePrefix)
Defaults constructor.
|
OfflineSorter(Directory dir,
String tempFileNamePrefix,
Comparator<BytesRef> comparator)
Defaults constructor with a custom comparator.
|
OfflineSorter(Directory dir,
String tempFileNamePrefix,
Comparator<BytesRef> comparator,
OfflineSorter.BufferSize ramBufferSize,
int maxTempfiles,
int valueLength)
All-details constructor.
|
Constructor and Description |
---|
BKDWriter(int maxDoc,
Directory tempDir,
String tempFileNamePrefix,
int numDims,
int bytesPerDim,
int maxPointsInLeafNode,
double maxMBSortInHeap,
long totalPointCount,
boolean singleValuePerDoc) |
BKDWriter(int maxDoc,
Directory tempDir,
String tempFileNamePrefix,
int numDims,
int bytesPerDim,
int maxPointsInLeafNode,
double maxMBSortInHeap,
long totalPointCount,
boolean singleValuePerDoc,
boolean longOrds,
long offlineSorterBufferMB,
int offlineSorterMaxTempFiles) |
OfflinePointReader(Directory tempDir,
String tempFileName,
int packedBytesLength,
long start,
long length,
boolean longOrds,
boolean singleValuePerDoc) |
OfflinePointWriter(Directory tempDir,
String tempFileNamePrefix,
int packedBytesLength,
boolean longOrds,
String desc,
long expectedCount,
boolean singleValuePerDoc)
Create a new writer with an unknown number of incoming points
|
OfflinePointWriter(Directory tempDir,
String name,
int packedBytesLength,
long count,
boolean longOrds,
boolean singleValuePerDoc)
Initializes on an already written/closed file, just so consumers can use
OfflinePointWriter.getReader(long, long) to read the file. |
Modifier and Type | Class and Description |
---|---|
static class |
MetricsDirectoryFactory.MetricsDirectory |
Modifier and Type | Field and Description |
---|---|
Directory |
CachingDirectoryFactory.CacheValue.directory |
Modifier and Type | Field and Description |
---|---|
protected Map<Directory,CachingDirectoryFactory.CacheValue> |
CachingDirectoryFactory.byDirectoryCache |
protected Map<Directory,List<CachingDirectoryFactory.CloseListener>> |
CachingDirectoryFactory.closeListeners |
Modifier and Type | Method and Description |
---|---|
protected Directory |
StandardDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
SimpleFSDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
RAMDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
NRTCachingDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
NIOFSDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
MMapDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
MetricsDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected Directory |
HdfsDirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext) |
protected abstract Directory |
DirectoryFactory.create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
Directory |
MetricsDirectoryFactory.get(String path,
DirectoryFactory.DirContext dirContext,
String rawLockType) |
abstract Directory |
DirectoryFactory.get(String path,
DirectoryFactory.DirContext dirContext,
String rawLockType)
Returns the Directory for a given path, using the specified rawLockType.
|
Directory |
CachingDirectoryFactory.get(String path,
DirectoryFactory.DirContext dirContext,
String rawLockType) |
protected Directory |
DirectoryFactory.getBaseDir(Directory dir) |
Modifier and Type | Method and Description |
---|---|
void |
MetricsDirectoryFactory.addCloseListener(Directory dir,
CachingDirectoryFactory.CloseListener closeListener) |
abstract void |
DirectoryFactory.addCloseListener(Directory dir,
CachingDirectoryFactory.CloseListener closeListener)
Adds a close listener for a Directory.
|
void |
CachingDirectoryFactory.addCloseListener(Directory dir,
CachingDirectoryFactory.CloseListener closeListener) |
void |
MetricsDirectoryFactory.doneWithDirectory(Directory dir) |
abstract void |
DirectoryFactory.doneWithDirectory(Directory directory)
Indicates a Directory will no longer be used, and when its ref count
hits 0, it can be closed.
|
void |
CachingDirectoryFactory.doneWithDirectory(Directory directory) |
static boolean |
DirectoryFactory.empty(Directory dir)
Delete the files in the Directory
|
protected Directory |
DirectoryFactory.getBaseDir(Directory dir) |
protected String |
CachingDirectoryFactory.getPath(Directory directory) |
void |
MetricsDirectoryFactory.incRef(Directory dir) |
abstract void |
DirectoryFactory.incRef(Directory directory)
Increment the number of references to the given Directory.
|
void |
CachingDirectoryFactory.incRef(Directory directory) |
void |
StandardDirectoryFactory.move(Directory fromDir,
Directory toDir,
String fileName,
IOContext ioContext)
Override for more efficient moves.
|
void |
MetricsDirectoryFactory.move(Directory fromDir,
Directory toDir,
String fileName,
IOContext ioContext) |
void |
HdfsDirectoryFactory.move(Directory fromDir,
Directory toDir,
String fileName,
IOContext ioContext) |
void |
DirectoryFactory.move(Directory fromDir,
Directory toDir,
String fileName,
IOContext ioContext)
Override for more efficient moves.
|
DirectoryReader |
StandardIndexReaderFactory.newReader(Directory indexDir,
SolrCore core) |
abstract DirectoryReader |
IndexReaderFactory.newReader(Directory indexDir,
SolrCore core)
Creates a new IndexReader instance using the given Directory.
|
void |
MetricsDirectoryFactory.release(Directory dir) |
abstract void |
DirectoryFactory.release(Directory directory)
Releases the Directory so that it may be closed when it is no longer
referenced.
|
void |
CachingDirectoryFactory.release(Directory directory) |
void |
MetricsDirectoryFactory.remove(Directory dir) |
void |
EphemeralDirectoryFactory.remove(Directory dir) |
abstract void |
DirectoryFactory.remove(Directory dir)
Removes the Directory's persistent storage.
|
void |
CachingDirectoryFactory.remove(Directory dir) |
void |
MetricsDirectoryFactory.remove(Directory dir,
boolean afterCoreClose) |
abstract void |
DirectoryFactory.remove(Directory dir,
boolean afterCoreClose)
Removes the Directory's persistent storage.
|
void |
CachingDirectoryFactory.remove(Directory dir,
boolean deleteAfterCoreClose) |
void |
StandardDirectoryFactory.renameWithOverwrite(Directory dir,
String fileName,
String toName) |
void |
MetricsDirectoryFactory.renameWithOverwrite(Directory dir,
String fileName,
String toName) |
void |
HdfsDirectoryFactory.renameWithOverwrite(Directory dir,
String fileName,
String toName) |
void |
DirectoryFactory.renameWithOverwrite(Directory dir,
String fileName,
String toName) |
long |
MetricsDirectoryFactory.size(Directory dir) |
long |
HdfsDirectoryFactory.size(Directory directory) |
long |
DirectoryFactory.size(Directory directory) |
static long |
DirectoryFactory.sizeOf(Directory directory,
String file) |
static long |
DirectoryFactory.sizeOfDirectory(Directory directory) |
Constructor and Description |
---|
CacheValue(String path,
Directory directory) |
MetricsDirectory(SolrMetricManager metricManager,
String registry,
Directory in,
boolean directoryDetails) |
Modifier and Type | Method and Description |
---|---|
void |
LocalFileSystemRepository.copyFileFrom(Directory sourceDir,
String fileName,
URI dest) |
void |
HdfsBackupRepository.copyFileFrom(Directory sourceDir,
String fileName,
URI dest) |
void |
BackupRepository.copyFileFrom(Directory sourceDir,
String fileName,
URI dest)
Copy a file from specified
sourceDir to the destination repository (i.e. |
void |
LocalFileSystemRepository.copyFileTo(URI sourceDir,
String fileName,
Directory dest) |
void |
HdfsBackupRepository.copyFileTo(URI sourceRepo,
String fileName,
Directory dest) |
void |
BackupRepository.copyFileTo(URI sourceRepo,
String fileName,
Directory dest)
Copy a file from specified
sourceRepo to the destination directory (i.e. |
Modifier and Type | Method and Description |
---|---|
Directory |
SolrSnapshotMetaDataManager.getSnapshotsDir() |
Modifier and Type | Method and Description |
---|---|
static void |
SolrSnapshotManager.deleteNonSnapshotIndexFiles(SolrCore core,
Directory dir,
Collection<SolrSnapshotMetaDataManager.SnapshotMetaData> snapshots)
This method deletes index files not associated with the specified
snapshots . |
static void |
SolrSnapshotManager.deleteSnapshotIndexFiles(SolrCore core,
Directory dir,
long gen)
This method deletes index files of the IndexCommit for the specified generation number.
|
Constructor and Description |
---|
SolrSnapshotMetaDataManager(SolrCore solrCore,
Directory dir)
A constructor.
|
SolrSnapshotMetaDataManager(SolrCore solrCore,
Directory dir,
IndexWriterConfig.OpenMode mode)
A constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static IndexFetcher.CompareResult |
IndexFetcher.compareFile(Directory indexDir,
String filename,
Long backupIndexFileLen,
Long backupIndexFileChecksum) |
Modifier and Type | Field and Description |
---|---|
protected Directory |
AbstractLuceneSpellChecker.index |
Modifier and Type | Class and Description |
---|---|
class |
BlockDirectory |
Constructor and Description |
---|
BlockDirectory(String dirName,
Directory directory,
Cache cache,
Set<String> blockCacheFileTypes,
boolean blockCacheReadEnabled,
boolean blockCacheWriteEnabled) |
BlockDirectory(String dirName,
Directory directory,
Cache cache,
Set<String> blockCacheFileTypes,
boolean blockCacheReadEnabled,
boolean blockCacheWriteEnabled,
boolean cacheMerges,
boolean cacheReadOnce) |
Modifier and Type | Class and Description |
---|---|
class |
HdfsDirectory |
Modifier and Type | Method and Description |
---|---|
Lock |
HdfsLockFactory.obtainLock(Directory dir,
String lockName) |
Constructor and Description |
---|
SolrIndexWriter(String name,
Directory d,
IndexWriterConfig conf) |