make method name more unique

This commit is contained in:
2023-02-25 08:38:15 +01:00
parent 8627d4a412
commit 5e9e34d910
4 changed files with 7 additions and 7 deletions

View File

@@ -121,7 +121,7 @@ public class BSFile implements AutoCloseable {
dirty = true;
}
public void append(final long value) {
public void appendSingleValue(final long value) {
int bytesWritten = VariableByteEncoder.encodeInto(value, buffer.getBuffer(), offsetInBuffer);
if (bytesWritten == 0) {

View File

@@ -25,9 +25,9 @@ public class LongStreamFile implements AutoCloseable {
return new LongStreamFile(bsFile);
}
public void append(final long value) throws IOException {
public void appendSingleValue(final long value) throws IOException {
bsFile.append(value);
bsFile.appendSingleValue(value);
}
public Stream<LongList> streamOfLongLists() {

View File

@@ -51,13 +51,13 @@ public class BSFileTest {
blockOffset = bsFile.getRootBlockOffset();
for (long i = 0; i < numLongs / 2; i++) {
bsFile.append(i);
bsFile.appendSingleValue(i);
}
}
try (final BSFile bsFile = BSFile.existingFile(blockOffset, ds, NullCustomizer.INSTANCE)) {
for (long i = numLongs / 2; i < numLongs; i++) {
bsFile.append(i);
bsFile.appendSingleValue(i);
}
}
}
@@ -98,7 +98,7 @@ public class BSFileTest {
// will produce 1,2 and 3 byte sequences when encoded
final long value = random.nextLong(32768);
listOfValues.add(value);
bsFile.append(value);
bsFile.appendSingleValue(value);
}
expected.put(bsFile.getRootBlockOffset(), listOfValues);
}

View File

@@ -194,7 +194,7 @@ public class DataStore implements AutoCloseable {
try (final LongStreamFile docIdsOfTag = diskStorage.streamExistingFile(diskStoreOffsetForDocIdsOfTag,
partitionId)) {
docIdsOfTag.append(docId);
docIdsOfTag.appendSingleValue(docId);
}
}