You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2010/12/20 12:22:46 UTC
svn commit: r1051069 -
/lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java
Author: rmuir
Date: Mon Dec 20 11:22:46 2010
New Revision: 1051069
URL: http://svn.apache.org/viewvc?rev=1051069&view=rev
Log:
LUCENE-1410: restore MMapDirectory's inputs as private and remove getBuffer
Modified:
lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java
Modified: lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java?rev=1051069&r1=1051068&r2=1051069&view=diff
==============================================================================
--- lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java (original)
+++ lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/store/MMapDirectory.java Mon Dec 20 11:22:46 2010
@@ -214,8 +214,7 @@ public class MMapDirectory extends FSDir
}
}
- // nocommit make private again
- public class MMapIndexInput extends IndexInput {
+ private class MMapIndexInput extends IndexInput {
private ByteBuffer buffer;
private final long length;
@@ -226,11 +225,6 @@ public class MMapDirectory extends FSDir
this.buffer = raf.getChannel().map(MapMode.READ_ONLY, 0, length);
}
- // nocommit
- public ByteBuffer getBuffer() {
- return buffer;
- }
-
@Override
public byte readByte() throws IOException {
try {
@@ -316,8 +310,7 @@ public class MMapDirectory extends FSDir
// Because Java's ByteBuffer uses an int to address the
// values, it's necessary to access a file >
// Integer.MAX_VALUE in size using multiple byte buffers.
- // nocommit make private again
- public class MultiMMapIndexInput extends IndexInput {
+ private class MultiMMapIndexInput extends IndexInput {
private ByteBuffer[] buffers;
private int[] bufSizes; // keep here, ByteBuffer.size() method is optional
@@ -364,11 +357,6 @@ public class MMapDirectory extends FSDir
seek(0L);
}
- public ByteBuffer getBuffer() {
- // nocommit fixup
- return null;
- }
-
@Override
public byte readByte() throws IOException {
try {