mirror of https://github.com/apache/lucene.git
remove dead code
This commit is contained in:
parent
af34993843
commit
fafbb2b6c7
|
@ -30,7 +30,6 @@ final class OfflinePointReader implements PointReader {
|
|||
private final byte[] packedValue;
|
||||
private long ord;
|
||||
private int docID;
|
||||
final int bytesPerDoc;
|
||||
|
||||
OfflinePointReader(Directory tempDir, String tempFileName, int packedBytesLength, long start, long length) throws IOException {
|
||||
this(tempDir.openInput(tempFileName, IOContext.READONCE), packedBytesLength, start, length);
|
||||
|
@ -38,7 +37,7 @@ final class OfflinePointReader implements PointReader {
|
|||
|
||||
private OfflinePointReader(IndexInput in, int packedBytesLength, long start, long length) throws IOException {
|
||||
this.in = in;
|
||||
bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;
|
||||
int bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;
|
||||
long seekFP = start * bytesPerDoc;
|
||||
in.seek(seekFP);
|
||||
this.countLeft = length;
|
||||
|
|
|
@ -28,7 +28,6 @@ final class OfflinePointWriter implements PointWriter {
|
|||
final Directory tempDir;
|
||||
final IndexOutput out;
|
||||
final int packedBytesLength;
|
||||
final int bytesPerDoc;
|
||||
private long count;
|
||||
private boolean closed;
|
||||
|
||||
|
@ -36,7 +35,6 @@ final class OfflinePointWriter implements PointWriter {
|
|||
this.out = tempDir.createTempOutput(tempFileNamePrefix, "bkd", IOContext.DEFAULT);
|
||||
this.tempDir = tempDir;
|
||||
this.packedBytesLength = packedBytesLength;
|
||||
bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;
|
||||
}
|
||||
|
||||
/** Initializes on an already written/closed file, just so consumers can use {@link #getReader} to read the file. */
|
||||
|
@ -44,7 +42,6 @@ final class OfflinePointWriter implements PointWriter {
|
|||
this.out = out;
|
||||
this.tempDir = tempDir;
|
||||
this.packedBytesLength = packedBytesLength;
|
||||
bytesPerDoc = packedBytesLength + Long.BYTES + Integer.BYTES;
|
||||
this.count = count;
|
||||
closed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue