-
Notifications
You must be signed in to change notification settings - Fork 135
IGNITE-15783 Mapper API and simple implementation. #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add missed types in tests.
# Conflicts: # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/KVMarshaller.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/MarshallerUtil.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/asm/AsmSerializerGenerator.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/reflection/FieldAccessor.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/reflection/JavaSerializer.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/reflection/Marshaller.java # modules/schema/src/test/java/org/apache/ignite/internal/schema/marshaller/JavaSerializerTest.java # modules/schema/src/test/java/org/apache/ignite/internal/schema/marshaller/reflection/FieldAccessorTest.java # modules/schema/src/test/java/org/apache/ignite/internal/schema/registry/UpgradingRowAdapterTest.java # modules/table/src/main/java/org/apache/ignite/internal/schema/marshaller/KVMarshaller.java # modules/table/src/main/java/org/apache/ignite/internal/schema/marshaller/KvMarshaller.java # modules/table/src/main/java/org/apache/ignite/internal/table/KeyValueViewImpl.java # modules/table/src/test/java/org/apache/ignite/internal/table/KeyValueViewOperationsSimpleSchemaTest.java
857d4b9 to
d83585e
Compare
# Conflicts: # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/asm/ColumnAccessCodeGenerator.java # modules/schema/src/main/java/org/apache/ignite/internal/schema/marshaller/reflection/Marshaller.java # modules/schema/src/test/java/org/apache/ignite/internal/schema/marshaller/JavaSerializerTest.java # modules/schema/src/test/java/org/apache/ignite/internal/schema/marshaller/reflection/FieldAccessorTest.java
modules/api/src/main/java/org/apache/ignite/table/mapper/MapperBuilder.java
Outdated
Show resolved
Hide resolved
| * @param val Object to map to native type. | ||
| * @return {@code null} for {@code null} value. Otherwise returns NativeType according to the value's type. | ||
| */ | ||
| @Contract("null -> null") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What reason to add jetbrains annotations? I think we should start discussion at least internally before starting it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already use jetbrains annotations in the project (see @Nullable and @NotNull).
The contract is clearly described in javadoc and the annotation just helps to suppress IDEA warning and affect nothing.
Proof:
Note that this annotation just describes how the code works and doesn't add any functionality by means of code generation.
https://issues.apache.org/jira/browse/IGNITE-15783