mirror of https://github.com/apache/cassandra
r/m no-op seeks. patch by jbellis; reviewed by Jun Rau. see #52
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@762377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eec2f8aa03
commit
960b9164e6
|
|
@ -123,7 +123,6 @@ public class SequenceFile
|
|||
if (keyBuffer == null || keyBufLength == 0)
|
||||
throw new IllegalArgumentException("Key cannot be NULL or of zero length.");
|
||||
|
||||
file_.seek(file_.getFilePointer());
|
||||
file_.writeInt(keyBufLength);
|
||||
file_.write(keyBuffer.getData(), 0, keyBufLength);
|
||||
|
||||
|
|
@ -137,7 +136,6 @@ public class SequenceFile
|
|||
if (key == null)
|
||||
throw new IllegalArgumentException("Key cannot be NULL.");
|
||||
|
||||
file_.seek(file_.getFilePointer());
|
||||
file_.writeUTF(key);
|
||||
int length = buffer.getLength();
|
||||
file_.writeInt(length);
|
||||
|
|
@ -149,7 +147,6 @@ public class SequenceFile
|
|||
if (key == null)
|
||||
throw new IllegalArgumentException("Key cannot be NULL.");
|
||||
|
||||
file_.seek(file_.getFilePointer());
|
||||
file_.writeUTF(key);
|
||||
file_.writeInt(value.length);
|
||||
file_.write(value);
|
||||
|
|
@ -160,7 +157,6 @@ public class SequenceFile
|
|||
if (key == null)
|
||||
throw new IllegalArgumentException("Key cannot be NULL.");
|
||||
|
||||
file_.seek(file_.getFilePointer());
|
||||
file_.writeUTF(key);
|
||||
file_.writeLong(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue