@@ -61,6 +61,7 @@ public static void initializeTestData() {
61
61
"\" mySubDoc1\" :{\" myString\" :\" hello json\" }," +
62
62
"\" myArray1\" :[\" str_1\" ,\" str_2\" ,\" ...\" ,\" str_N\" ]," +
63
63
"\" myArray2\" :[{\" k\" :\" a\" ,\" v\" :1},{\" k\" :\" b\" ,\" v\" :2},{\" k\" :\" c\" ,\" v\" :3}]," +
64
+ "\" myArray3\" :[[[1],[],[2,3],[4,5,6]]]," +
64
65
"\" mySubDoc2\" :{\" k1\" :9,\" k2\" :8,\" k3\" :7}," +
65
66
"\" myMapOfStrings\" :{\" k1\" : [ \" v1-a\" , \" v1-b\" ],\" k2\" : [ \" v2-a\" ],\" k3\" :[ \" v3-a\" , \" v3-b\" , \" v3-c\" ]}," +
66
67
"\" myMapOfInts\" :{\" k1\" : [ 11, 12 ],\" k2\" : [ 21 ],\" k3\" :[ 31, 32, 33 ]}," +
@@ -85,6 +86,7 @@ public static void initializeTestData() {
85
86
.field ("v" ,Schema .INT32_SCHEMA )
86
87
.build ())
87
88
)
89
+ .field ("myArray3" , SchemaBuilder .array (SchemaBuilder .array (SchemaBuilder .array (Schema .INT32_SCHEMA ))))
88
90
.field ("mySubDoc2" , SchemaBuilder .map (Schema .STRING_SCHEMA , Schema .INT32_SCHEMA ).build ())
89
91
.field ( "myMapOfStrings" , SchemaBuilder .map (Schema .STRING_SCHEMA , SchemaBuilder .array (Schema .STRING_SCHEMA ).build ()).build ())
90
92
.field ( "myMapOfInts" , SchemaBuilder .map (Schema .STRING_SCHEMA , SchemaBuilder .array (Schema .INT32_SCHEMA ).build ()).build ())
@@ -113,6 +115,9 @@ public static void initializeTestData() {
113
115
.put ("k" ,"c" ).put ("v" ,3 )
114
116
)
115
117
)
118
+ .put ("myArray3" , Arrays .asList (
119
+ Arrays .asList (Arrays .asList (1 ),Arrays .asList (),Arrays .asList (2 ,3 ),Arrays .asList (4 ,5 ,6 ))
120
+ ))
116
121
.put ("mySubDoc2" ,new HashMap <String ,Integer >(){{ put ("k1" ,9 ); put ("k2" ,8 ); put ("k3" ,7 );}})
117
122
.put ("myMapOfStrings" , new HashMap <String , List <String >>(){{
118
123
put ("k1" , Arrays .asList ("v1-a" , "v1-b" ));
@@ -152,6 +157,10 @@ public static void initializeTestData() {
152
157
new HashMap <Object ,Object >(){{put ("k" ,"c" );put ("v" ,3 );}}
153
158
)
154
159
);
160
+ OBJ_MAP_1 .put ("myArray3" ,Arrays .asList (
161
+ Arrays .asList (Arrays .asList (1 ), Arrays .asList (), Arrays .asList (2 ,3 ), Arrays .asList (4 ,5 ,6 ))
162
+ )
163
+ );
155
164
OBJ_MAP_1 .put ("mySubDoc2" ,new HashMap <String ,Integer >(){{ put ("k1" ,9 ); put ("k2" ,8 ); put ("k3" ,7 );}});
156
165
OBJ_MAP_1 .put ("myMapOfStrings" ,new HashMap <String ,List <String >>(){{
157
166
put ("k1" ,Arrays .asList ("v1-a" , "v1-b" ));
@@ -195,6 +204,14 @@ public static void initializeTestData() {
195
204
new BsonDocument ("k" , new BsonString ("b" )).append ("v" , new BsonInt32 (2 )),
196
205
new BsonDocument ("k" , new BsonString ("c" )).append ("v" , new BsonInt32 (3 ))))
197
206
)
207
+ .append ("myArray3" , new BsonArray (Arrays .asList (
208
+ new BsonArray (Arrays .asList (
209
+ new BsonArray (Arrays .asList (new BsonInt32 (1 ))),
210
+ new BsonArray (),
211
+ new BsonArray (Arrays .asList (new BsonInt32 (2 ),new BsonInt32 (3 ))),
212
+ new BsonArray (Arrays .asList (new BsonInt32 (4 ),new BsonInt32 (5 ),new BsonInt32 (6 )))
213
+ ))))
214
+ )
198
215
.append ("mySubDoc2" , new BsonDocument ("k1" , new BsonInt32 (9 ))
199
216
.append ("k2" , new BsonInt32 (8 ))
200
217
.append ("k3" , new BsonInt32 (7 ))
0 commit comments