aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/main/java
Commit message (Collapse)AuthorAgeFilesLines
* include tensor type in error messageArne Juul5 days1-1/+1
|
* accept just a hex string for dense tensorsArne Juul6 days2-0/+19
|
* Drop 'hasMapped' condition as it is always true.Henning Baldersheim2024-06-041-1/+1
|
* Avoid methods deprecated in jackson 2.17.1Henning Baldersheim2024-05-064-11/+12
|
* Revert "Update jackson2.vespa.version to v2.17.0"Henning Baldersheim2024-05-064-12/+11
|
* Avoid deprecated methods.Henning Baldersheim2024-05-064-11/+12
|
* Cleanup: No functional changesJon Bratseth2024-05-021-7/+2
|
* Use full author nameHarald Musum2024-04-241-1/+1
|
* Replace all usages of Arrays.asList with List.of where possible.Henning Baldersheim2024-04-122-17/+13
|
* Unify on List.ofHenning Baldersheim2024-04-112-4/+13
|
* Unify on Set.ofHenning Baldersheim2024-04-111-2/+2
|
* Update expected dependencies.Henning Baldersheim2024-04-081-1/+1
|
* Fix document serialization of weighted set add updateHarald Musum2024-03-261-33/+46
| | | | | Implement as described in https://docs.vespa.ai/en/reference/document-json-format.html#add-weighted-set (previously adding would create the same as adding array elements)
* Add support for serializing document update to jsonHarald Musum2024-03-124-8/+16
|
* Support serializing document remove operation to json formatHarald Musum2024-03-114-0/+23
|
* Strip invalid unicode based on system propertyjonmv2024-03-081-5/+9
|
* Minor cleanups of serialization versions and buffer sizesTor Brede Vekterli2024-03-044-8/+5
|
* Explicitly use HEAD serializer for document update instancesTor Brede Vekterli2024-02-231-0/+1
| | | | | | | For some assuredly exciting reason, `DocumentUpdate.serialize()` by default uses the v6 protocol version instead of the HEAD version. This caused tensor updates (which are only available on the HEAD version) to fail serialization.
* Add new Protobuf-based MessageBus DocumentAPI protocolTor Brede Vekterli2024-02-164-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an entirely new implementation of the internal MessageBus DocumentAPI protocol, which shall be functionally 1-to-1 compatible with the existing legacy protocol. New protobuf schemas have been added to the top-level documentapi module, which are separated into different domains of responsibility: * CRUD messages * Visiting messages * Data inspection messages As well as a schema for shared, common message types. Both C++ and Java protocol implementations separate serialization and deserialization into a codec abstraction per message type, which hides the boilerplate required for Protobuf buffer management. The Java version is a tad more verbose due to generics type-erasure. This protocol does _not_ currently support lazy (de-)serialization in Java, as the existing mechanisms for doing so are inherently tied to the legacy protocol version. Performance tests will decide if we need to introduce such functionality to the new protocol version. To avoid having the new protocol go live in production, this commit changes the semantics of how MessageBus version reporting works (at least for the near future); instead of reporting the current Vespa _release_ version, it reports the highest supported _protocol_ version. This lets us conditionally enable the new protocol by reporting a MessageBus version greater than or equal to the protocol version _iff_ the protocol should be active. The new protocol is disabled by default. Other changes: * Protocol tests have been moved up one package directory level to be aligned with the actual package of the classes they test. This allows for using package-protected constructors in the serialization tests. * `DocumentDeserializer` now exposes the underlying document type repo/manager. This is done to detangle `Document`/`DocumentUpdate` deserialization from the underlying wire buffer management. * `RemoveLocationMessage` at long last contains a bucket space, which was forgotten when we initially added this concept to the other messages, and where the pain of adding it in later was too big (not so anymore!). Unit tests for both C++ and Java have been hoisted from the legacy test suite, cleaned up and extended with additional cases. The C++ tests use the old unit test kit and should receive a good follow-up washing and GTest-rewrite. **Important**: due to how MessageBus protocol versioning works, the final protocol version is _not_ yet decided, as setting it requires syncing against our build systems. A follow-up commit will assign the final version as well as include all required binary test files.
* - Drop the optimization from long to int and just use long throughout.Henning Baldersheim2024-02-101-1/+1
| | | | - That enables that numeric hashes are also handled efficiently, without resorting to strings.
* - Use numericLabel over label for address manipulation.Henning Baldersheim2024-02-011-1/+1
| | | | - Only use label when actual string representation is needed.
* Revert "Revert "Jonmv/reapply leaner token buffer""Tor Brede Vekterli2024-01-267-131/+230
|
* Revert "Jonmv/reapply leaner token buffer"Jon Marius Venstad2024-01-267-230/+131
|
* Check for "fields" fieldjonmv2024-01-261-1/+2
|
* Handle other fields in streaming document JSON parsingjonmv2024-01-263-21/+49
|
* Revert "Merge pull request #30067 from ↵jonmv2024-01-267-129/+199
| | | | | | | vespa-engine/revert-30038-jonmv/leaner-token-buffer" This reverts commit b771fbe5fe648cf4c64e04341542e11c2e21cb9d, reversing changes made to 7b578506b5c4c59f4273e74af1f0db4a74f82175.
* Revert "Jonmv/leaner token buffer"Jon Marius Venstad2024-01-257-199/+129
|
* Apply suggestions from code reviewJon Marius Venstad2024-01-252-2/+5
|
* Revert "Improve error detection"jonmv2024-01-241-4/+1
| | | | This reverts commit c5a7723fb522a5aa2cff1a8662e1ddffc80c9de6.
* Add new LazyTokenBuffer, and wire it into existing tensor parse testsjonmv2024-01-244-8/+122
|
* Remove redundant branchjonmv2024-01-241-10/+0
|
* Simplify a bitjonmv2024-01-242-39/+19
|
* Improve error detectionjonmv2024-01-231-1/+4
|
* Remove backwards token buffer APIsjonmv2024-01-234-79/+62
|
* Improve readabilityjonmv2024-01-231-3/+5
|
* Fix parsing of recursive "match" update syntaxjonmv2024-01-232-61/+26
|
* Add some more unit tests for json document reader updat parsingjonmv2024-01-231-2/+1
|
* Iterator from correct placejonmv2024-01-191-1/+1
|
* HashMap is enough, no accesses requires insertion order.Henning Baldersheim2024-01-161-3/+4
|
* Minor code healthHenning Baldersheim2024-01-163-20/+12
|
* - Only call getKey once.Henning Baldersheim2024-01-162-31/+21
| | | | - Just use a presized array of native ints, instead of LinkedList.
* Reapply "add parsing of special strings for inf/nan cell values"Arne Juul2023-12-141-0/+4
| | | | This reverts commit d976f82207c09b3215661e1d034ae9a42f28a63d.
* Revert "add parsing of special strings for inf/nan cell values"Henning Baldersheim2023-12-131-4/+0
|
* add parsing of special strings for inf/nan cell valuesArne Juul2023-12-111-0/+4
|
* Revert "Merge pull request #29328 from ↵Jon Bratseth2023-11-149-55/+44
| | | | | | | vespa-engine/revert-29314-bratseth/casing-take-2" This reverts commit a72e949533a46d665440a9c72ca2b8fb58f3a9c3, reversing changes made to 944d635d00e165166508ef23399e9ed65a87a9c8.
* Revert "Bratseth/casing take 2"Harald Musum2023-11-139-44/+55
|
* Don't output valueJon Bratseth2023-11-102-5/+4
|
* Prefer first stem to original if non equalJon Bratseth2023-11-108-53/+43
|
* Merge pull request #28850 from ↵Henning Baldersheim2023-10-114-14/+14
|\ | | | | | | | | vespa-engine/jonmv/concrete-document-field-validation Jonmv/concrete document field validation
| * Non-functional changesjonmv2023-10-104-14/+14
| |