You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2013/08/11 16:56:27 UTC
svn commit: r1512951 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java
Author: uschindler
Date: Sun Aug 11 14:56:27 2013
New Revision: 1512951
URL: http://svn.apache.org/r1512951
Log:
LUCENE-5164: Remove deprecated stuff in trunk.
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java?rev=1512951&r1=1512950&r2=1512951&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java Sun Aug 11 14:56:27 2013
@@ -112,17 +112,8 @@ import org.apache.lucene.util.IOUtils;
*/
public abstract class FSDirectory extends Directory {
- /**
- * Default read chunk size: 8192 bytes (this is the size up to which the JDK
- does not allocate additional arrays while reading/writing)
- @deprecated This constant is no longer used since Lucene 4.5.
- */
- @Deprecated
- public static final int DEFAULT_READ_CHUNK_SIZE = 8192;
-
protected final File directory; // The underlying filesystem directory
protected final Set<String> staleFiles = synchronizedSet(new HashSet<String>()); // Files written, but not yet sync'ed
- private int chunkSize = DEFAULT_READ_CHUNK_SIZE;
// returns the canonical version of the directory, creating it if it doesn't exist.
private static File getCanonicalPath(File file) throws IOException {
@@ -356,27 +347,6 @@ public abstract class FSDirectory extend
}
/**
- * This setting has no effect anymore.
- * @deprecated This is no longer used since Lucene 4.5.
- */
- @Deprecated
- public final void setReadChunkSize(int chunkSize) {
- if (chunkSize <= 0) {
- throw new IllegalArgumentException("chunkSize must be positive");
- }
- this.chunkSize = chunkSize;
- }
-
- /**
- * This setting has no effect anymore.
- * @deprecated This is no longer used since Lucene 4.5.
- */
- @Deprecated
- public final int getReadChunkSize() {
- return chunkSize;
- }
-
- /**
* Writes output with {@link RandomAccessFile#write(byte[], int, int)}
*/
protected static class FSIndexOutput extends BufferedIndexOutput {