Skip to content

Commit 9bd2907

Browse files
[CI] Auto commit changes from spotless
1 parent e496e0d commit 9bd2907

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Diff for: benchmarks/src/main/java/org/elasticsearch/benchmark/index/codec/tsdb/TSDBDocValuesMergeBenchmark.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ public void setup() throws IOException {
9696
indexWriterWithOptimizedMerge = createIndex(tempDirectoryWithDocValuesSkipper, true);
9797
}
9898

99-
private IndexWriter createIndex(final Directory directory, final boolean optimizedMergeEnabled)
100-
throws IOException {
99+
private IndexWriter createIndex(final Directory directory, final boolean optimizedMergeEnabled) throws IOException {
101100

102101
final IndexWriterConfig config = new IndexWriterConfig(new StandardAnalyzer());
103102
// NOTE: index sort config matching LogsDB's sort order
@@ -118,8 +117,8 @@ public DocValuesFormat getDocValuesFormatForField(String field) {
118117

119118
long counter1 = 0;
120119
long counter2 = 10_000_000;
121-
long[] gauge1Values = new long[] {2, 4, 6, 8, 10, 12, 14, 16};
122-
long[] gauge2Values = new long[] {-2, -4, -6, -8, -10, -12, -14, -16};
120+
long[] gauge1Values = new long[] { 2, 4, 6, 8, 10, 12, 14, 16 };
121+
long[] gauge2Values = new long[] { -2, -4, -6, -8, -10, -12, -14, -16 };
123122
int numHosts = 1000;
124123

125124
final Random random = new Random(seed);

Diff for: server/src/main/java/org/elasticsearch/index/codec/tsdb/DocValuesConsumerUtil.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
class DocValuesConsumerUtil {
2323

24-
static SortedNumericDocValues mergeSortedNumericValues(List<SortedNumericDocValuesSub> subs, boolean indexIsSorted)
25-
throws IOException {
24+
static SortedNumericDocValues mergeSortedNumericValues(List<SortedNumericDocValuesSub> subs, boolean indexIsSorted) throws IOException {
2625
long cost = 0;
2726
for (SortedNumericDocValuesSub sub : subs) {
2827
cost += sub.values.cost();
@@ -96,8 +95,7 @@ public int nextDoc() throws IOException {
9695
}
9796
}
9897

99-
static NumericDocValues mergeNumericValues(List<NumericDocValuesSub> subs, boolean indexIsSorted)
100-
throws IOException {
98+
static NumericDocValues mergeNumericValues(List<NumericDocValuesSub> subs, boolean indexIsSorted) throws IOException {
10199
long cost = 0;
102100
for (NumericDocValuesSub sub : subs) {
103101
cost += sub.values.cost();
@@ -166,8 +164,7 @@ public int nextDoc() throws IOException {
166164
}
167165
}
168166

169-
static SortedDocValues mergeSortedValues(List<SortedDocValuesSub> subs, boolean indexIsSorted)
170-
throws IOException {
167+
static SortedDocValues mergeSortedValues(List<SortedDocValuesSub> subs, boolean indexIsSorted) throws IOException {
171168
long cost = 0;
172169
for (SortedDocValuesSub sub : subs) {
173170
cost += sub.values.cost();

0 commit comments

Comments
 (0)