Skip to content

Commit b8aa111

Browse files
change method name
1 parent 01ddc8b commit b8aa111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/writer/impl/FixedByteChunkSVForwardIndexWriter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public class FixedByteChunkSVForwardIndexWriter extends BaseChunkSVForwardIndexW
7171
public FixedByteChunkSVForwardIndexWriter(File file, ChunkCompressionType compressionType, int totalDocs,
7272
int numDocsPerChunk, int sizeOfEntry, int writerVersion)
7373
throws IOException {
74-
super(file, compressionType, totalDocs, normalizeChunkSize(writerVersion, numDocsPerChunk),
75-
(sizeOfEntry * normalizeChunkSize(writerVersion, numDocsPerChunk)), sizeOfEntry,
74+
super(file, compressionType, totalDocs, normalizeDocsPerChunk(writerVersion, numDocsPerChunk),
75+
(sizeOfEntry * normalizeDocsPerChunk(writerVersion, numDocsPerChunk)), sizeOfEntry,
7676
writerVersion, true);
7777
_chunkDataOffset = 0;
7878
}
@@ -114,7 +114,7 @@ private void flushChunkIfNeeded() {
114114
}
115115
}
116116

117-
private static int normalizeChunkSize(int version, int numDocsPerChunk) {
117+
private static int normalizeDocsPerChunk(int version, int numDocsPerChunk) {
118118
// V4 uses power of 2 chunk sizes for random access efficiency
119119
if (version >= 4 && (numDocsPerChunk & (numDocsPerChunk - 1)) != 0) {
120120
return 1 << (32 - Integer.numberOfLeadingZeros(numDocsPerChunk - 1));

0 commit comments

Comments
 (0)