GITHUB-912: Remove deprecated APIs; fix link

This commit is contained in:
Uwe Schindler 2022-09-26 18:36:09 +02:00
parent 3b9c728ab5
commit d943b76215
1 changed files with 1 additions and 23 deletions

View File

@ -34,7 +34,7 @@ import org.apache.lucene.util.Constants;
* process equal to the size of the file being mapped. Before using this class, be sure your have
* plenty of virtual address space, e.g. by using a 64 bit JRE, or a 32 bit JRE with indexes that
* are guaranteed to fit within the address space. On 32 bit platforms also consult {@link
* #MMapDirectory(Path, LockFactory, int)} if you have problems with mmap failing because of
* #MMapDirectory(Path, LockFactory, long)} if you have problems with mmap failing because of
* fragmented address space. If you get an OutOfMemoryException, it is recommended to reduce the
* chunk size, until it works.
*
@ -114,17 +114,6 @@ public class MMapDirectory extends FSDirectory {
this(path, FSLockFactory.getDefault());
}
/**
* Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The
* directory is created at the named location if it does not yet exist.
*
* @deprecated use {@link #MMapDirectory(Path, long)} instead.
*/
@Deprecated
public MMapDirectory(Path path, int maxChunkSize) throws IOException {
this(path, (long) maxChunkSize);
}
/**
* Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The
* directory is created at the named location if it does not yet exist.
@ -138,17 +127,6 @@ public class MMapDirectory extends FSDirectory {
this(path, FSLockFactory.getDefault(), maxChunkSize);
}
/**
* Create a new MMapDirectory for the named location and {@link FSLockFactory#getDefault()}. The
* directory is created at the named location if it does not yet exist.
*
* @deprecated use {@link #MMapDirectory(Path, LockFactory, long)} instead.
*/
@Deprecated
public MMapDirectory(Path path, LockFactory lockFactory, int maxChunkSize) throws IOException {
this(path, lockFactory, (long) maxChunkSize);
}
/**
* Create a new MMapDirectory for the named location, specifying the maximum chunk size used for
* memory mapping. The directory is created at the named location if it does not yet exist.