5050import java .util .Arrays ;
5151import java .util .Locale ;
5252import java .util .Map ;
53- import java .util .function .Consumer ;
5453import java .util .function .IntSupplier ;
5554
5655import static org .elasticsearch .index .codec .tsdb .es819 .ES819TSDBDocValuesFormatTests .TestES819TSDBDocValuesFormatVersion0 ;
@@ -68,12 +67,7 @@ public void testMixedIndex() throws Exception {
6867 public void testMixedIndexDocValueVersion0ToCurrent () throws Exception {
6968 var oldCodec = TestUtil .alwaysDocValuesFormat (new TestES819TSDBDocValuesFormatVersion0 ());
7069 var newCodec = TestUtil .alwaysDocValuesFormat (new ES819TSDBDocValuesFormat ());
71- testMixedIndex (
72- oldCodec ,
73- newCodec ,
74- this ::assertVersion819 ,
75- this ::assertVersion819
76- );
70+ testMixedIndex (oldCodec , newCodec , this ::assertVersion819 , this ::assertVersion819 );
7771 }
7872
7973 public void testMixedIndex816To900Lucene101 () throws Exception {
@@ -98,7 +92,8 @@ public DocValuesFormat getDocValuesFormatForField(String field) {
9892 testMixedIndex (oldCodec , newCodec );
9993 }
10094
101- void assertFieldInfoDocValuesFormat (DirectoryReader reader , String expectedSuffix , String expectedFormat ) throws IOException , NoSuchFieldException , IllegalAccessException {
95+ void assertFieldInfoDocValuesFormat (DirectoryReader reader , String expectedSuffix , String expectedFormat ) throws IOException ,
96+ NoSuchFieldException , IllegalAccessException {
10297 // Assert per field format field info attributes:
10398 // (XPerFieldDocValuesFormat must produce the same attributes as PerFieldDocValuesFormat for BWC.
10499 // Otherwise, doc values fields may disappear)
@@ -121,12 +116,13 @@ void assertVersion819(DirectoryReader reader) throws IOException, NoSuchFieldExc
121116 assertFieldInfoDocValuesFormat (reader , "0" , "ES819TSDB" );
122117 }
123118
124- void testMixedIndex (Codec oldCodec , Codec newCodec ) throws IOException , NoSuchFieldException , IllegalAccessException , ClassNotFoundException {
119+ void testMixedIndex (Codec oldCodec , Codec newCodec ) throws IOException , NoSuchFieldException , IllegalAccessException ,
120+ ClassNotFoundException {
125121 testMixedIndex (oldCodec , newCodec , this ::assertVersion87 , this ::assertVersion819 );
126122 }
127123
128- void testMixedIndex (Codec oldCodec , Codec newCodec , VersionAssert assertOldVersion , VersionAssert assertNewVersion ) throws IOException , NoSuchFieldException , IllegalAccessException ,
129- ClassNotFoundException {
124+ void testMixedIndex (Codec oldCodec , Codec newCodec , VersionAssert assertOldVersion , VersionAssert assertNewVersion ) throws IOException ,
125+ NoSuchFieldException , IllegalAccessException , ClassNotFoundException {
130126 String timestampField = "@timestamp" ;
131127 String hostnameField = "host.name" ;
132128 long baseTimestamp = 1704067200000L ;
0 commit comments