Permalink
Browse files

Release v 1.75 with integrated text-search subsystem.

  • Loading branch information...
hhblaze committed Jul 5, 2016
1 parent 329dcf5 commit 3bdf2b387653729ab87e13c8115c73aab15443c6
Showing with 2,246 additions and 33 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 DBreeze/DBreeze.csproj
  3. +9 −7 DBreeze/TextSearch/TextDeferredIndexer.cs
  4. +1 −1 DBreeze/TextSearch/TextSearchHandler.cs
  5. +1 −1 DBreeze/TextSearch/TextSearchOptions.cs
  6. +1 −1 DBreeze/Transactions/Transaction.cs
  7. +1 −1 DBreeze/Utils/Biser.cs
  8. +1 −1 DBreeze/Utils/Compression.cs
  9. +114 −0 DBreeze/Utils/Net35support.cs
  10. BIN Deployment/Nuget/DBreeze.1.75.0.nupkg
  11. +533 −5 Deployment/bin/NET35/DBreeze.XML
  12. BIN Deployment/bin/NET35/DBreeze.dll
  13. BIN Deployment/bin/NET35/DBreeze_01_073_20160108_NET35_Win.zip
  14. BIN Deployment/bin/NET35/DBreeze_01_074_20160329_NET35_Win.zip
  15. BIN Deployment/bin/NET35/DBreeze_01_075_20160705_NET35_Win.zip
  16. +527 −5 Deployment/bin/NET40/DBreeze.XML
  17. BIN Deployment/bin/NET40/DBreeze.dll
  18. BIN Deployment/bin/NET40/DBreeze_01_073_20160108_NET40_MONO.zip
  19. BIN Deployment/bin/NET40/DBreeze_01_074_20160329_NET40_MONO.zip
  20. BIN Deployment/bin/NET40/DBreeze_01_075_20160705_NET40_MONO.zip
  21. +527 −5 Deployment/bin/NET45/DBreeze.XML
  22. BIN Deployment/bin/NET45/DBreeze.dll
  23. BIN Deployment/bin/NET45/DBreeze_01_073_20160108_NET45_MONO.zip
  24. BIN Deployment/bin/NET45/DBreeze_01_074_20160329_NET45_MONO.zip
  25. BIN Deployment/bin/NET45/DBreeze_01_075_20160705_NET45_MONO.zip
  26. BIN Deployment/bin/UWP/DBreeze.dll
  27. BIN Deployment/bin/UWP/DBreeze_01_074_20160329_NET451_NETCore_WinUWP_.zip
  28. BIN Deployment/bin/UWP/DBreeze_01_075_20160705_NET451_NETCore_WinUWP_.zip
  29. +527 −5 Deployment/bin/XAMARIN/DBreeze.XML
  30. BIN Deployment/bin/XAMARIN/DBreeze.dll
  31. BIN Deployment/bin/XAMARIN/DBreeze_01_073_20160108_Xamarin_Android_MONO.zip
  32. BIN Deployment/bin/XAMARIN/DBreeze_01_074_20160329_Xamarin_Android_MONO.zip
  33. BIN Deployment/bin/XAMARIN/DBreeze_01_075_20160705_Xamarin_Android_MONO.zip
  34. +2 −1 README.md
View
@@ -11,3 +11,4 @@ x86/
.svn/
*.nupkg
.vs/
+bin
View
@@ -140,6 +140,7 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="Utils\MurMurHash.cs" />
+ <Compile Include="Utils\Net35support.cs" />
<Compile Include="Utils\StringProcessing.cs" />
<Compile Include="Utils\XmlSerializator.cs" />
</ItemGroup>
@@ -10,7 +10,7 @@
using System.IO;
using System.Linq;
using System.Text;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
using DBreeze.Utils;
@@ -98,14 +98,16 @@ public void StartDefferedIndexing()
{
if (System.Threading.Interlocked.CompareExchange(ref inDeferredIndexer, 1, 0) != 0)
return;
+
+#if NET35 //The same must be use for .NET 4.0
+ new System.Threading.Thread(new System.Threading.ThreadStart(() =>
+ {
+ Indexer();
+ })).Start();
+#else
System.Threading.Tasks.Task.Run(() => { Indexer(); });
-
- //new System.Threading.Thread(new System.Threading.ThreadStart(() =>
- //{
- // Indexer();
-
- //})).Start();
+#endif
}
@@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
using DBreeze;
using DBreeze.Transactions;
@@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
namespace DBreeze.TextSearch
{
@@ -15,7 +15,7 @@
using DBreeze.SchemeInternal;
using DBreeze.Utils;
using DBreeze.TextSearch;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
namespace DBreeze.Transactions
{
View
@@ -10,7 +10,7 @@
using System.IO;
using System.Linq;
using System.Text;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
namespace DBreeze.Utils
{
@@ -7,7 +7,7 @@
using System.IO;
using System.Linq;
using System.Text;
-using System.Threading.Tasks;
+//using System.Threading.Tasks;
namespace DBreeze.Utils
{
@@ -0,0 +1,114 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace DBreeze.Utils
+{
+#if NET35
+
+ /// <summary>
+ /// Tuple
+ /// </summary>
+ /// <typeparam name="T1"></typeparam>
+ public class Tuple<T1>
+ {
+ public Tuple(T1 item1)
+ {
+ Item1 = item1;
+ }
+
+ public T1 Item1 { get; set; }
+ }
+
+ public class Tuple<T1, T2> : Tuple<T1>
+ {
+ public Tuple(T1 item1, T2 item2) : base(item1)
+ {
+ Item2 = item2;
+ }
+
+ public T2 Item2 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3> : Tuple<T1, T2>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3) : base(item1, item2)
+ {
+ Item3 = item3;
+ }
+
+ public T3 Item3 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3,T4> : Tuple<T1, T2, T3>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3, T4 item4) : base(item1, item2, item3)
+ {
+ Item4 = item4;
+ }
+
+ public T4 Item4 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3, T4, T5> : Tuple<T1, T2, T3, T4>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5) : base(item1, item2, item3, item4)
+ {
+ Item5 = item5;
+ }
+
+ public T5 Item5 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3, T4, T5, T6> : Tuple<T1, T2, T3, T4, T5>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6) : base(item1, item2, item3, item4, item5)
+ {
+ Item6 = item6;
+ }
+
+ public T6 Item6 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3, T4, T5, T6, T7> : Tuple<T1, T2, T3, T4, T5, T6>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7) : base(item1, item2, item3, item4, item5, item6)
+ {
+ Item7 = item7;
+ }
+
+ public T7 Item7 { get; set; }
+ }
+
+ public class Tuple<T1, T2, T3, T4, T5, T6, T7, T8> : Tuple<T1, T2, T3, T4, T5, T6, T7>
+ {
+ public Tuple(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6, T7 item7, T8 item8) : base(item1, item2, item3, item4, item5, item6, item7)
+ {
+ Item8 = item8;
+ }
+
+ public T8 Item8 { get; set; }
+ }
+
+ public static class Tuple
+ {
+ public static Tuple<T1> Create<T1>(T1 item1)
+ {
+ return new Tuple<T1>(item1);
+ }
+
+ public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
+ {
+ return new Tuple<T1, T2>(item1, item2);
+ }
+
+ public static Tuple<T1, T2, T3> Create<T1, T2, T3>(T1 item1, T2 item2, T3 item3)
+ {
+ return new Tuple<T1, T2, T3>(item1, item2, item3);
+ }
+ }
+
+
+#endif
+}
Binary file not shown.
Oops, something went wrong.

0 comments on commit 3bdf2b3

Please sign in to comment.