Skip to content

Commit f30cc97

Browse files
elasticsearchmachinemartijnvg
authored andcommitted
[CI] Auto commit changes from spotless
1 parent f30e753 commit f30cc97

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,22 +1275,22 @@ public void loadBlock(BlockLoader.LongBuilder builder, BlockLoader.Docs docs) th
12751275
}
12761276

12771277
// TODO: Try to fix this:
1278-
// int startIndexInBlock = 0;
1279-
// int currentBlockIndex = docs.get(0) >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1280-
// for (int i = startIndexInBlock; i < docs.count(); i++) {
1281-
// doc = docs.get(i);
1282-
// int blockIndex = doc >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1283-
// if (blockIndex != currentBlockIndex) {
1284-
// TODO: make builder aware of codec?
1285-
// loadCurrentBlock(blockIndex);
1286-
// for (int j = startIndexInBlock; j < i; j++) {
1287-
// int blockInIndex = doc & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1288-
// builder.appendLong(currentBlock[blockInIndex]);
1289-
// }
1290-
// currentBlockIndex = blockIndex;
1291-
// startIndexInBlock = i;
1292-
// }
1293-
// }
1278+
// int startIndexInBlock = 0;
1279+
// int currentBlockIndex = docs.get(0) >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1280+
// for (int i = startIndexInBlock; i < docs.count(); i++) {
1281+
// doc = docs.get(i);
1282+
// int blockIndex = doc >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1283+
// if (blockIndex != currentBlockIndex) {
1284+
// TODO: make builder aware of codec?
1285+
// loadCurrentBlock(blockIndex);
1286+
// for (int j = startIndexInBlock; j < i; j++) {
1287+
// int blockInIndex = doc & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1288+
// builder.appendLong(currentBlock[blockInIndex]);
1289+
// }
1290+
// currentBlockIndex = blockIndex;
1291+
// startIndexInBlock = i;
1292+
// }
1293+
// }
12941294
}
12951295

12961296
@Override
@@ -1311,23 +1311,23 @@ public void loadBlock(BlockLoader.IntBuilder builder, BlockLoader.Docs docs) thr
13111311
}
13121312

13131313
// TODO: try to fix this:
1314-
// int startIndexInBlock = 0;
1315-
// int currentBlockIndex = docs.get(0) >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1316-
// for (int i = startIndexInBlock; i < docs.count(); i++) {
1317-
// int docId = docs.get(i);
1318-
// int blockIndex = docId >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1319-
// if (blockIndex != currentBlockIndex) {
1320-
// TODO: make builder aware of codec?
1321-
// loadCurrentBlock(blockIndex);
1322-
// for (int j = startIndexInBlock; j < i; j++) {
1323-
// int blockInIndex = docId & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1324-
// int value = Math.toIntExact(currentBlock[blockInIndex]);
1325-
// builder.appendInt(value);
1326-
// }
1327-
// currentBlockIndex = blockIndex;
1328-
// startIndexInBlock = i;
1329-
// }
1330-
// }
1314+
// int startIndexInBlock = 0;
1315+
// int currentBlockIndex = docs.get(0) >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1316+
// for (int i = startIndexInBlock; i < docs.count(); i++) {
1317+
// int docId = docs.get(i);
1318+
// int blockIndex = docId >>> ES819TSDBDocValuesFormat.NUMERIC_BLOCK_SHIFT;
1319+
// if (blockIndex != currentBlockIndex) {
1320+
// TODO: make builder aware of codec?
1321+
// loadCurrentBlock(blockIndex);
1322+
// for (int j = startIndexInBlock; j < i; j++) {
1323+
// int blockInIndex = docId & ES819TSDBDocValuesFormat.NUMERIC_BLOCK_MASK;
1324+
// int value = Math.toIntExact(currentBlock[blockInIndex]);
1325+
// builder.appendInt(value);
1326+
// }
1327+
// currentBlockIndex = blockIndex;
1328+
// startIndexInBlock = i;
1329+
// }
1330+
// }
13311331
}
13321332

13331333
@Override

0 commit comments

Comments
 (0)