Skip to content

Commit ce26e27

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 899947c commit ce26e27

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesProducer.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ public long cost() {
376376
}
377377

378378
@Override
379-
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) throws IOException {
379+
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset)
380+
throws IOException {
380381
final int docCount = docs.count();
381382
if (valuesSorted && ords instanceof BaseDenseNumericValues denseOrds) {
382383
int firstDoc = docs.get(offset);
@@ -430,7 +431,8 @@ public TermsEnum termsEnum() throws IOException {
430431
}
431432

432433
@Override
433-
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) throws IOException {
434+
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset)
435+
throws IOException {
434436
return null;
435437
}
436438
}
@@ -1184,7 +1186,6 @@ public long longValue() {
11841186
private long[] lookaheadBlock;
11851187
private IndexInput lookaheadData = null;
11861188

1187-
11881189
@Override
11891190
public int docID() {
11901191
return doc;
@@ -1219,7 +1220,7 @@ public long longValue() throws IOException {
12191220
final int index = doc;
12201221
final int blockIndex = index >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
12211222
final int blockInIndex = index & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1222-
if(blockIndex == currentBlockIndex) {
1223+
if (blockIndex == currentBlockIndex) {
12231224
return currentBlock[blockInIndex];
12241225
}
12251226
if (blockIndex == lookaheadBlockIndex) {
@@ -1240,7 +1241,8 @@ public long longValue() throws IOException {
12401241
}
12411242

12421243
@Override
1243-
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) throws IOException {
1244+
public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset)
1245+
throws IOException {
12441246
assert maxOrd == -1 : "unexpected maxOrd[" + maxOrd + "]";
12451247
final int docsCount = docs.count();
12461248
doc = docs.get(docsCount - 1);
@@ -1282,7 +1284,7 @@ public BlockLoader.Block tryReadColumnAtATime(BlockLoader.BlockFactory factory,
12821284
long lookAheadValueAt(int targetDoc) throws IOException {
12831285
final int blockIndex = targetDoc >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
12841286
final int valueIndex = targetDoc & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1285-
if(blockIndex == currentBlockIndex) {
1287+
if (blockIndex == currentBlockIndex) {
12861288
return currentBlock[valueIndex];
12871289
}
12881290
// load data to the lookahead block

server/src/main/java/org/elasticsearch/index/mapper/BlockDocValuesReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public BlockLoader.Block read(BlockFactory factory, Docs docs, int offset) throw
129129
if (numericDocValues instanceof BlockLoader.OptionalColumnAtATimeReader direct) {
130130
BlockLoader.Block result = direct.tryReadColumnAtATime(factory, docs, offset);
131131
if (result != null) {
132-
return result;
132+
return result;
133133
}
134134
}
135135
try (BlockLoader.LongBuilder builder = factory.longsFromDocValues(docs.count() - offset)) {

0 commit comments

Comments
 (0)