D
Size: a a a
D
D
OS
OS
D
D
D
D
OS
OS
OS
OS
OS
OS
OS
[data-mongodb]$ ./target/data-mongodb
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot ::
2020-09-30 12:40:58.315 INFO 4831 --- [ main] com.example.data.mongo.MongoApplication : Starting MongoApplication using Java 11.0.8.0.2 on kafka-bench with PID 4831 (/home/opc/tmp/tmp/spring-graalvm-native-0.8.1/spring-graalvm-native-samples/data-mongodb/target/data-mongodb started by opc in /home/opc/tmp/tmp/spring-graalvm-native-0.8.1/spring-graalvm-native-samples/data-mongodb)
2020-09-30 12:40:58.315 INFO 4831 --- [ main] com.example.data.mongo.MongoApplication : No active profile set, falling back to default profiles: default
2020-09-30 12:40:58.327 INFO 4831 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2020-09-30 12:40:58.328 INFO 4831 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 0 ms. Found 1 MongoDB repository interfaces.
2020-09-30 12:40:58.333 INFO 4831 --- [ main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
mongo_1 | 2020-09-30T12:40:58.337+0000 I NETWORK [listener] connection accepted from 172.17.0.1:39656 #1 (1 connection now open)
2020-09-30 12:40:58.338 INFO 4831 --- [localhost:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2, serverValue:1}] to localhost:27017
2020-09-30 12:40:58.338 INFO 4831 --- [localhost:27017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:2}] to localhost:27017
2020-09-30 12:40:58.338 INFO 4831 --- [localhost:27017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=3581731}
mongo_1 | 2020-09-30T12:40:58.338+0000 I NETWORK [listener] connection accepted from 172.17.0.1:39654 #2 (2 connections now open)
mongo_1 | 2020-09-30T12:40:58.338+0000 I NETWORK [conn1] received client metadata from 172.17.0.1:39656 conn1: { driver: { name: "mongo-java-driver|sync|spring-boot", version: "4.1.0" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.14.35-1902.304.6.el7uek.x86_64" }, platform: "Java/Oracle Corporation/unknown-version" }
mongo_1 | 2020-09-30T12:40:58.338+0000 I NETWORK [conn2] received client metadata from 172.17.0.1:39654 conn2: { driver: { name: "mongo-java-driver|sync|spring-boot", version: "4.1.0" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.14.35-1902.304.6.el7uek.x86_64" }, platform: "Java/Oracle Corporation/unknown-version" }
mongo_1 | 2020-09-30T12:40:58.343+0000 I NETWORK [listener] connection accepted from 172.17.0.1:39660 #3 (3 connections now open)
mongo_1 | 2020-09-30T12:40:58.343+0000 I NETWORK [conn3] received client metadata from 172.17.0.1:39660 conn3: { driver: { name: "mongo-java-driver|sync|spring-boot", version: "4.1.0" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.14.35-1902.304.6.el7uek.x86_64" }, platform: "Java/Oracle Corporation/unknown-version" }
2020-09-30 12:40:58.343 INFO 4831 --- [ main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:3, serverValue:3}] to localhost:27017
mongo_1 | 2020-09-30T12:40:58.344+0000 I STORAGE [conn3] createCollection: test.order with provided UUID: e93398b7-6464-49cf-8d81-dfe25a6227b4 and options: { uuid: UUID("e93398b7-6464-49cf-8d81-dfe25a6227b4") }
OS
mongo_1 | 2020-09-30T12:40:58.355+0000 I INDEX [conn3] index build: done building index _id_ on ns test.order
mongo_1 | 2020-09-30T12:40:58.365+0000 I INDEX [conn3] index build: starting on test.order properties: { v: 2, key: { customerId: 1 }, name: "customerId", ns: "test.order" } using method: Hybrid
mongo_1 | 2020-09-30T12:40:58.365+0000 I INDEX [conn3] build may temporarily use up to 200 megabytes of RAM
mongo_1 | 2020-09-30T12:40:58.365+0000 I INDEX [conn3] index build: collection scan done. scanned 0 total records in 0 seconds
mongo_1 | 2020-09-30T12:40:58.366+0000 I INDEX [conn3] index build: inserted 0 keys from external sorter into index in 0 seconds
mongo_1 | 2020-09-30T12:40:58.367+0000 I INDEX [conn3] index build: done building index customerId on ns test.order
2020-09-30 12:40:58.370 INFO 4831 --- [ main] tionInformation$PropertyDescriptorSource : Couldn't read class metadata for interface com.example.data.mongo.OrderProjection. Input property calculation might fail!
2020-09-30 12:40:58.374 INFO 4831 --- [ main] com.example.data.mongo.MongoApplication : Started MongoApplication in 0.069 seconds (JVM running for 0.072)
---- INT REPO ----
-----------------
---- FIND ALL ----
mongo_1 | 2020-09-30T12:40:58.374+0000 I SHARDING [conn3] Marking collection test.order as collection version: <unsharded>
Order{id='5f747cda2ae29a386d31c2ce', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}, LineItem{caption='p2', price=0.87, quantity=2}, LineItem{caption='p3', price=5.33, quantity=1}]}
-----------------
---- Paging / Sorting ----
sortedByCustomer: [Order{id='5f747cda2ae29a386d31c2d2', customerId='b12', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}]}, Order{id='5f747cda2ae29a386d31c2d3', customerId='b12', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}]}, Order{id='5f747cda2ae29a386d31c2cf', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}]}, Order{id='5f747cda2ae29a386d31c2d0', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p2', price=0.87, quantity=2}]}, Order{id='5f747cda2ae29a386d31c2d1', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p3', price=5.33, quantity=1}]}]
c42_page0: Page 1 of 2 containing com.example.data.mongo.Order instances
c42_page1: Page 2 of 2 containing com.example.data.mongo.Order instances
c42_slice0: Slice 0 containing com.example.data.mongo.Order instances
-----------------
---- PART TREE QUERY ----
Order{id='5f747cda2ae29a386d31c2d4', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}, LineItem{caption='p2', price=0.87, quantity=2}, LineItem{caption='p3', price=5.33, quantity=1}]}
-----------------
---- ANNOTATED QUERY ----
Order{id='5f747cda2ae29a386d31c2d5', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}, LineItem{caption='p2', price=0.87, quantity=2}, LineItem{caption='p3', price=5.33, quantity=1}]}
-----------------
---- ANNOTATED AGGREGATIONS ----
result: [OrdersPerCustomer{customerId='c42', total=3}, OrdersPerCustomer{customerId='b12', total=2}]
-----------------
---- CUSTOM IMPLEMENTATION ----
invoice: Invoice{orderId='5f747cda2ae29a386d31c2db', taxAmount=1.5770000000000002, netAmount=8.3, totalAmount=9.877, items=[LineItem{caption='p1', price=1.23, quantity=1}, LineItem{caption='p2', price=0.87, quantity=2}, LineItem{caption='p3', price=5.33, quantity=1}]}
-----------------
---- RESULT PROJECTION ----
OrderProjection($Proxy258){id=5f747cda2ae29a386d31c2dc, customerId=c42}
-----------------
---- QUERY BY EXAMPLE ----
result: [Order{id='5f747cda2ae29a386d31c2dd', customerId='c42', orderDate=Wed Sep 30 12:40:58 GMT 2020, items=[LineItem{caption='p1', price=1.23, quantity=1}]}]
-----------------
OS
D
OS
ПФ