Skip to content

Commit 1264fd0

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 46f5396 commit 1264fd0

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

server/src/test/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesFormatTests.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public void testForceMergeDenseCase() throws Exception {
7070
try (var dir = newDirectory(); var iw = new IndexWriter(dir, config)) {
7171
long counter1 = 0;
7272
long counter2 = 10_000_000;
73-
long[] gauge1Values = new long[]{2, 4, 6, 8, 10, 12, 14, 16};
74-
long[] gauge2Values = new long[]{-2, -4, -6, -8, -10, -12, -14, -16};
75-
String[] tags = new String[]{"tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8"};
73+
long[] gauge1Values = new long[] { 2, 4, 6, 8, 10, 12, 14, 16 };
74+
long[] gauge2Values = new long[] { -2, -4, -6, -8, -10, -12, -14, -16 };
75+
String[] tags = new String[] { "tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8" };
7676

7777
int numDocs = 256 + random().nextInt(1024);
7878
int numHosts = numDocs / 20;
@@ -293,9 +293,9 @@ public void testForceMergeSparseCase() throws Exception {
293293
try (var dir = newDirectory(); var iw = new IndexWriter(dir, config)) {
294294
long counter1 = 0;
295295
long counter2 = 10_000_000;
296-
long[] gauge1Values = new long[]{2, 4, 6, 8, 10, 12, 14, 16};
297-
long[] gauge2Values = new long[]{-2, -4, -6, -8, -10, -12, -14, -16};
298-
String[] tags = new String[]{"tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8"};
296+
long[] gauge1Values = new long[] { 2, 4, 6, 8, 10, 12, 14, 16 };
297+
long[] gauge2Values = new long[] { -2, -4, -6, -8, -10, -12, -14, -16 };
298+
String[] tags = new String[] { "tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8" };
299299

300300
int numDocs = 256 + random().nextInt(1024);
301301
int numHosts = numDocs / 20;
@@ -445,8 +445,8 @@ public void testWithNoValueMultiValue() throws Exception {
445445

446446
var config = getTimeSeriesIndexWriterConfig(hostnameField, timestampField);
447447
try (var dir = newDirectory(); var iw = new IndexWriter(dir, config)) {
448-
long[] gauge1Values = new long[]{2, 4, 6, 8, 10, 12, 14, 16};
449-
String[] tags = new String[]{"tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8"};
448+
long[] gauge1Values = new long[] { 2, 4, 6, 8, 10, 12, 14, 16 };
449+
String[] tags = new String[] { "tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8" };
450450
{
451451
long timestamp = baseTimestamp;
452452
for (int i = 0; i < numRounds; i++) {
@@ -712,7 +712,7 @@ public void testBulkLoading() throws Exception {
712712

713713
var config = getTimeSeriesIndexWriterConfig(null, timestampField);
714714
try (var dir = newDirectory(); var iw = new IndexWriter(dir, config)) {
715-
long[] gauge1Values = new long[]{2, 4, 6, 8, 10, 12, 14, 16};
715+
long[] gauge1Values = new long[] { 2, 4, 6, 8, 10, 12, 14, 16 };
716716
int numDocs = 256 + random().nextInt(8096);
717717

718718
for (int i = 0; i < numDocs; i++) {
@@ -743,7 +743,7 @@ public void testBulkLoading() throws Exception {
743743
var counterDV = getBulkNumericDocValues(leaf.reader(), counterField);
744744
var gaugeDV = getBulkNumericDocValues(leaf.reader(), gaugeField);
745745
int maxDoc = leaf.reader().maxDoc();
746-
for (int i = 0; i < maxDoc; ) {
746+
for (int i = 0; i < maxDoc;) {
747747
int size = Math.max(1, random().nextInt(0, maxDoc - i));
748748
var docs = TestBlock.docs(IntStream.range(i, i + size).toArray());
749749

@@ -971,9 +971,8 @@ public void testDocIDEndRun() throws IOException {
971971
try (var dir = newDirectory(); var iw = new IndexWriter(dir, config)) {
972972
long counter1 = 0;
973973

974-
975-
long[] gauge2Values = new long[]{-2, -4, -6, -8, -10, -12, -14, -16};
976-
String[] tags = new String[]{"tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8"};
974+
long[] gauge2Values = new long[] { -2, -4, -6, -8, -10, -12, -14, -16 };
975+
String[] tags = new String[] { "tag_1", "tag_2", "tag_3", "tag_4", "tag_5", "tag_6", "tag_7", "tag_8" };
977976

978977
// IndexedDISI stores ids in blocks of 4096. To test sparse end runs, we want a mixture of
979978
// dense and sparse blocks, so we need the gap frequency to be larger than

0 commit comments

Comments
 (0)