-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-12824 .NET: Add BinaryConfiguration.TimestampConverter #8568
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
d5254a1
IGNITE-12824: WIP
nizhikov ca3cc3a
IGNITE-12824: WIP
nizhikov 063b6f0
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov 24a89ed
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov 17ffb01
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov 317a666
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov 2086fbf
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov d0514d3
IGNITE-12824: Fix of writing dates to the cache from the .Net
nizhikov 03469e9
IGNITE-12824: Tests fix.
nizhikov 58254af
Merge branch 'master' into IGNITE-12824
nizhikov 75ee2ce
IGNITE-12824: Test update
nizhikov 5b196fe
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov a06e4a3
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov 1879594
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov e08e09a
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov ef420da
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov 7ac33e7
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov af92eb4
IGNITE-13865: Support of DateTime as a key or value in .Net and Java
nizhikov e99e251
Merge branch 'master' into IGNITE-12824
nizhikov 3fb26e1
IGNITE-12824: Test update
nizhikov d84249a
IGNITE-12824: Update of the date conversion(works on Mac)
nizhikov 0b0af6f
IGNITE-12824: Allows local dates only for `ForceTimestamp` mode.
nizhikov e3ecbaa
IGNITE-12824: Allows local dates only for `ForceTimestamp` mode.
nizhikov 332eb06
IGNITE-12824: Allows local dates only for `ForceTimestamp` mode.
nizhikov 1d1dc86
IGNITE-12824: Allows local dates only for `ForceTimestamp` mode.
nizhikov c846297
IGNITE-12824: Allows usages of Local dates but only for .NetCore appl…
nizhikov 2e5edb3
IGNITE-12824: Allows usages of Local dates but only for .NetCore appl…
nizhikov 078b658
IGNITE-12824: IDateTimeConverter implemented
nizhikov 969e5c5
IGNITE-12824: IDateTimeConverter implemented
nizhikov 14b4456
IGNITE-12824: IDateTimeConverter implemented
nizhikov a93dc9f
IGNITE-12824: License fix.
nizhikov 8a481da
IGNITE-12824: Code review fixes.
nizhikov e635495
IGNITE-12824: Code review fixes.
nizhikov f7fe8cd
Merge branch 'master' into IGNITE-12824
nizhikov c66a2f1
IGNITE-12824: Code review fixes.
nizhikov be9a7df
IGNITE-12824: Code review fixes.
nizhikov 05a244b
IGNITE-12824: Code review fixes.
nizhikov 9500998
IGNITE-12824: Code review fixes.
nizhikov fc2b7b1
Add TestAddYearTimestampConverter
ptupitsyn ae70be9
Add TestAddYearTimestampConverter
ptupitsyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
modules/platforms/dotnet/Apache.Ignite.Core/Binary/IDateTimeConverter.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| namespace Apache.Ignite.Core.Binary | ||
| { | ||
| using System; | ||
|
|
||
| /// <summary> | ||
| /// Converter for DateTime objects. | ||
nizhikov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// </summary> | ||
| public interface IDateTimeConverter | ||
nizhikov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| /// <summary>Convert date to Java ticks.</summary> | ||
nizhikov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| /// <param name="date">Date</param> | ||
| /// <param name="high">High part (milliseconds).</param> | ||
| /// <param name="low">Low part (nanoseconds)</param> | ||
| void ToJavaTicks(DateTime date, out long high, out int low); | ||
|
|
||
| /// <summary>Convert date from Java ticks.</summary> | ||
| /// <param name="high">High part (milliseconds).</param> | ||
| /// <param name="low">Low part (nanoseconds)</param> | ||
| DateTime FromJavaTicks(long high, int low); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.