From 9e948f3472dc77c49eb4d0dbbaf495f6e86ff28f Mon Sep 17 00:00:00 2001 From: chrdek Date: Wed, 6 Dec 2023 00:58:38 +0200 Subject: [PATCH] Re-compiled changes etc. --- bin/Debug/net462/DataCalc.cs | 21 ++++++++++----------- bin/Debug/net462/Queryabl.dll | Bin 19456 -> 19968 bytes bin/Debug/net462/Queryabl.pdb | Bin 3268 -> 3272 bytes bin/Debug/net462/Queryabl.xml | 9 ++++----- index.json | 2 +- logo.svg | 25 +++++++++++++++++++++++++ xrefmap.yml | 18 +++++++++--------- 7 files changed, 49 insertions(+), 26 deletions(-) create mode 100644 logo.svg diff --git a/bin/Debug/net462/DataCalc.cs b/bin/Debug/net462/DataCalc.cs index cabe582..97afcbf 100644 --- a/bin/Debug/net462/DataCalc.cs +++ b/bin/Debug/net462/DataCalc.cs @@ -138,7 +138,6 @@ public static IQueryable> CollEvenLength(this IQueryable - /// /// The leftmost string part to compare with /// The rightmost string part to compare against /// The hamming value to check per string comparison @@ -149,12 +148,12 @@ public static IQueryable> CollEvenLength(this IQueryable hamCheckStr = new List{"test1","test2","test3","test2","10times49","20times46","times"}.AsQueryable(); /// var sourceStrings = new List { "abc", "def", "xyz" }.AsQueryable(); /// - /// sourceStrings.WhereDist("abg",1); - /// sourceStrings.WhereDist("aee",2); - /// hamCheckStr.WhereDist("test3",1); // all return the appropriate filtered queryable search results. + /// sourceStrings.WhereDist("abg",1); + /// sourceStrings.WhereDist("aee",2); + /// hamCheckStr.WhereDist("test3",1); // all return the appropriate filtered queryable search results. /// /// - public static IQueryable WhereDist(this IQueryable str1, string str2, int distCheck) + public static IQueryable WhereDist(this IQueryable str1, string str2, int distCheck) { Expression> distFilter = s1 => HammingDist(s1, str2) == distCheck; @@ -281,7 +280,7 @@ public static T FreqOccur(this IQueryable source) public static IQueryable SelectIntMatrix(this IQueryable source, int defaultLen = 0) { - Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", ""); + Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", "",RegexOptions.None,TimeSpan.FromSeconds(25)); //preset filter for default values equality Func toUnsigned = (len) => len < 0 ? (-len) : len; int limitInt = toUnsigned(defaultLen); @@ -296,7 +295,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, Expression> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), - (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) + (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) ); //default filtering part, returns full set of values as 2dim array nxm @@ -354,11 +353,11 @@ public static IQueryable SelectIntMatrix(this IQueryable source, if (conditions.Length == 0) { //checks for nulls etc prior to cleaning processed data.. - Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", ""); + Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", "",RegexOptions.None,TimeSpan.FromSeconds(25)); Expression> transfMap = str => ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), - (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) + (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0]) ); @@ -369,7 +368,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, } else { //project the selected items per length into 1-dim counterpart.. - Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", ""); + Expression> changeStr = strEl => Regex.Replace(string.IsNullOrEmpty(strEl) ? "0" : strEl, @"^\D$", "",RegexOptions.None,TimeSpan.FromSeconds(25)); Expression> transfMap = str => (conditions.Any(condition => condition(str))) ? new int[1, str.Length] @@ -377,7 +376,7 @@ public static IQueryable SelectIntMatrix(this IQueryable source, .Select((_, index) => char.IsDigit(str[index]) ? (int)char.GetNumericValue(str[index]) : 0) .ToArray() .To2DArray(1, str.Length) - : ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (int)(str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])); + : ConvertTo2Dim(new[] { str }.AsQueryable(), (int)Char.GetNumericValue(str.Length.ToString()[0]), (str.Length) / (int)Char.GetNumericValue(str.Length.ToString()[0])); var executedSource = source.Select(changeStr); var resultArrays = executedSource.Select(transfMap.Compile()); diff --git a/bin/Debug/net462/Queryabl.dll b/bin/Debug/net462/Queryabl.dll index 1383eaf0e3f76aeb05727f53083993071e2ed9f3..565b7506a61f3d2201008647f6cdee6fba08a6e7 100644 GIT binary patch delta 8360 zcmd5h3v^Ufl6CLvci-#xLjK*I&W{fH(4<4e5W!&3gaibH3CKhR6v+@aikbjX5JK$6 zAS!|b`&?J&$jC-qVRZd$f@hC93@Gb2JKL-yqh}b_?@>I8%N~C_E6i3^zkC{Vc6N5> z?3q4v-TK|Cy0_}qy&Yl?h}c77=UwB*Ei>K+_wz1{3)x~4z$|2_1hcnw*Uzp<{Xr{0 z6ER`{wc4(ttduL?p7~ zsTkF;jc_G0Gd%J0oWq`+N#`RGE=6!N#U8FAa&kfeqjINJ6ZZlZIX#}zpcf#I4X(xT zSBFbblI0mRSv`dmlT8M8_|RCXKf}`-wg4hw8$lc~*UUs`jb83d)yvgII5}=PZTgfF zTzW#B*dLZK4|h7TNx1&Qda>r|)-!gj7u^U^Ls4LbrxIb==BgHN4jR9Ubt zDXhF57&=Cj9j|xlGyIM+0wyll%Fx3zoKq?O8X|g2bJniJ6~>Vmv4g#(LH~B#6A>pc zytBQfx!LgsH0KMUar)HMZJ$bd1V-qE%bd8^=Uivx=3s$YrLh7`UWzicj+sby=ON`3 znf|F6dVCf#&e=>A$3h)h6r`V26dxNG$Zv#GXkME>o0h?~)LR`L|D_s0k!RJ!ETyh)N9iY4lM4hYqX$Sclwmsk2|914)#gwu zj8h#AHyJu8sm}QHaiZCoo4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J(5Ra8HQh09KP}bM-nf0&1|5->b4^FBO?a#8t=i~sR}+@wu<>pW zh2iA|+i(D#CcmdiP!aBMMx>>rp0u{$g3k=8T9p|Z=QHa z$O2FcRR%RK62nM2NPWZ!FOTGtt5ZBO-?TDT7x2l}=SwL_P3Rsw-Zs;HOc?{`h-!Z(? zutTPn%TPDgfz8Y>LD$%PzsHb%nP+@bb*%C3d4}xv+gbt zWNUvtgkYr=L7@*)7!gDmxb|Z76kRk(!d~npsh*nSRtIL7@0cezY}kwu~z4#vf{i z$ozai=W@>7=^No)ZHra6swZZ*?CVlfj%H)X03DQi@VYA2eVA0WdUerHixYY<$ilmA z)Y%(ya*EPoFR8nc`AlEOYJ zNh2p!2uh>Xf?NdI>GMJ~!UW8#2n{0io=2i@5#e4$V~EbM1cL>b9+<-jON6h9@E9Vc zXw>;voBe9ZIE4|_=4`-g^~_n0Z|aw`yv)I}N`$`B$-{zg37&3=EDzjC{3w*q$#p_c hvCfp9Y%xXZxa)^|)n;p}l+ecJdbiblR0Wcn{{RjNo=N}! diff --git a/bin/Debug/net462/Queryabl.xml b/bin/Debug/net462/Queryabl.xml index ad8c68c..4f806c7 100644 --- a/bin/Debug/net462/Queryabl.xml +++ b/bin/Debug/net462/Queryabl.xml @@ -99,12 +99,11 @@ - + Retrieves a Queryable of string based on IEnumerable of string data types that equal to a current hamming value of N and input type str2 that are checked against. - The leftmost string part to compare with The rightmost string part to compare against The hamming value to check per string comparison @@ -115,9 +114,9 @@ IQueryable hamCheckStr = new List{"test1","test2","test3","test2","10times49","20times46","times"}.AsQueryable(); var sourceStrings = new List { "abc", "def", "xyz" }.AsQueryable(); - sourceStrings.WhereDist("abg",1); - sourceStrings.WhereDist("aee",2); - hamCheckStr.WhereDist("test3",1); // all return the appropriate filtered queryable search results. + sourceStrings.WhereDist("abg",1); + sourceStrings.WhereDist("aee",2); + hamCheckStr.WhereDist("test3",1); // all return the appropriate filtered queryable search results. diff --git a/index.json b/index.json index 870a839..23cff47 100644 --- a/index.json +++ b/index.json @@ -2,7 +2,7 @@ "docs/Queryabl.DataCalc.html": { "href": "docs/Queryabl.DataCalc.html", "title": "Class DataCalc | Package Documentation", - "keywords": "Class DataCalc Namespace Queryabl Assembly Queryabl.dll Main class for extended functionality. Includes implementation of linq fluent clauses for \"Where\", \"Select\" with relevent customizations. public static class DataCalc Inheritance object DataCalc Inherited Members object.ToString() object.Equals(object) object.Equals(object, object) object.ReferenceEquals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() Methods CollEvenLength(IEnumerable>) Retrieves an IEnumerable of generic collections that have an odd/even length and uses fluent syntax. public static IEnumerable> CollEvenLength(this IEnumerable> source) Parameters source IEnumerable> Input data source of IEnumerable of enumerations Returns IEnumerable> Filtered IEnumerable list of generic collections of odd or even lengths. Type Parameters T Examples Filtering of nested lists based on their odd/even size. var test_list = new {new List{1,3,4,4}, new List{43,54,32}, new List{99,10,403,10,20,10}, new List{1}, new List{90,40} }.AsQueryable(); test_list.CollEvenLength(); //returns all lists that have even size. test_list.CollEvenLength().Take(1); //returns first list of elements that has even size. test_list.CollEvenLength().Take(2)); //retruns two lists of elements that have even size. CollEvenLength(IQueryable>) Retrieves a Queryable of IEnumerable collections that have an odd/even length and uses fluent syntax. public static IQueryable> CollEvenLength(this IQueryable> source) Parameters source IQueryable> Input data source of IQueryable of enumerations Returns IQueryable> Filtered IQueryable list of generic collections of odd or even lengths. Type Parameters T Examples Filtering of lists based on their odd/even size. var test_list = new {new List{1,3,4,4}, new List{43,54,32}, new List{99,10,403,10,20,10}, new List{1}, new List{90,40} }.AsQueryable(); test_list.CollEvenLength(); //returns all lists that have even size. test_list.CollEvenLength().Take(1); //returns first list of elements that has even size. test_list.CollEvenLength().Take(2)); //retruns two lists of elements that have even size. FilterNumerics(IEnumerable) NOTE: This is an example of how this should be done if implemented in code using methods (still Where(), Select() can be used). Allows for mixed generic enumerated data type filtering, retrieves and filters all numerical values only from the generic IEnumerable list. public static IEnumerable FilterNumerics(this IEnumerable source) Parameters source IEnumerable Input data source of IEnumerable Returns IEnumerable Filtered generic IEnumerable list of values Type Parameters T Examples Get the numbers from a mixed data type list. var ienum_mixed = new List{ 103,\"vffsd\",\"fmos\",new List{\"gfdfs\",\"fsd\",\"3489\"},9.0,89.3m,99.42m,1,90000000000}; var ienum_nums = ienum_mixed.FilterNumerics(); FilterNumerics(IEnumerable, Func) NOTE: This is an example of how this should be done if implemented in code using methods (still Where(), Select() can be used). Additional examples displaying extended usage on generic IEnumerables/IQueryables on mixed data types, uses anonymous function(s) for filtering. public static IEnumerable FilterNumerics(this IEnumerable source, Func predicate) Parameters source IEnumerable Input data source of IEnumerable predicate Func Anonymous function used as a predicate-based filter Returns IEnumerable Filtered generic enumerable list of values Type Parameters T Examples Get the numbers from a mixed data type list, simple examples with filters on queryable parts for extended numerical filtering on data cleanup operations. NOTE: FilterNumerics is used only for removing all non-numerical datatypes at once. IQueryable alldata = new List { 103, \"vffsd\", \"fmos\", new List { \"gfdfs\", \"fsd\", \"3489\" }, 9.0, 89.3m, 99.42m, 1, 90000000000 }.AsQueryable(); var numericValues = alldata.FilterNumerics(); //Sample Default Usage - With/Without FilterNumerics() // .Where(n => n is long); //select only long // .Where(n => n.ToString().Length > 10 == true); // select numeric values of prespecified length // .Where(n => n is UInt32); // select only uint // .Where(n => (n is Double) AND ((double)n >= 1)); //select only doubles 'AND' should be replaced with appropriate sign FreqObjsOccur(IQueryable) Retrieves a Queryable listing of the top most frequently occuring objects in the IQueryable input source of object type T. public static IQueryable FreqObjsOccur(this IQueryable source) Parameters source IQueryable Input data source of IQueryable of generic enumerations Returns IQueryable Filtered IQueryable list of the most frequently occuring objects of types T - Can return multiple types of objects. Type Parameters T Examples Retrieval of all most frequently occuring objects in the input IQueryable of objects type. Multiple return types included in the results. NOTE: Prespecified class definitions for tests provided at 'code' section. public class Person { public string name = \"\"; public string surname = \"\"; public int age = 0; public Person(string n, string sn) { this.name = n; this.surname = sn; } } public class Animal { public string species = \"\"; public Animal(string spec) { this.species = spec; } } public class Dog { public string name = \"\"; public Dog(string n) { this.name = n; } } var per1 = new Person(\"john\", \"six\"); var anim3 = new Animal(\"Reptile\"); var anim2 = new Animal(\"canine\"); var anim1 = new Animal(\"feline\"); var dog1 = new Dog(\"spok\"); var per2 = new Person(\"john\", \"1\"); var dog2 = new Dog(\"tim\"); var per3 = new Person(\"john\", \"test\"); IQueryable Freq1 = new List { \"gtes\", 11, 15, 15, anim3, anim2, dog2, dog2, dog2, dog2, dog1, per4, per4, per1, per2, per3, 190, 190, 190, \"vdvd\", \"3489\" }.AsQueryable(); Freq1.FreqObjsOccur(); //example for return types of T = Object FreqOccur(IQueryable) Retrieves the most frequently occuring object in the IQueryable input source of object type T. public static T FreqOccur(this IQueryable source) Parameters source IQueryable Input data source of IQueryable of generic enumerations Returns T The single most frequently-occuring object of type T Type Parameters T Examples Retrieval of the most frequently occuring value of either int/string other from IQueryable. NOTE: Prespecified class definitions for tests provided at 'code' section. public class Person { public string name = \"\"; public string surname = \"\"; public int age = 0; public Person(string n, string sn) { this.name = n; this.surname = sn; } } public class Animal { public string species = \"\"; public Animal(string spec) { this.species = spec; } } public class Dog { public string name = \"\"; public Dog(string n) { this.name = n; } } var per1 = new Person(\"john\", \"six\"); var anim3 = new Animal(\"Reptile\"); var anim2 = new Animal(\"canine\"); var anim1 = new Animal(\"feline\"); var dog1 = new Dog(\"spok\"); var per2 = new Person(\"john\", \"1\"); var dog2 = new Dog(\"tim\"); var per3 = new Person(\"john\", \"test\"); IQueryable testFreqOcc = new List{1,5,5,6,7,7,7,7,72,2,1,4,6,11,11,11,11,11,88,88,7,34,43,5,88,61,14,23,11,100}.AsQueryable(); IQueryable freqSeq2 = new List { \"gg\", \"4334\", \"4334\", \"4554\", \"gg\", \"gg\", \"gg\", \"9000\" }.AsQueryable(); IQueryable Freq1 = new List { \"gtes\", 11, 15, 15, anim3, anim2, dog2, dog2, dog2, dog2, dog1, per4, per4, per1, per2, per3, 190, 190, 190, \"vdvd\", \"3489\" }.AsQueryable(); testFreqOcc.FreqOccur(); //example for return types of T = int freqSeq2.FreqOccur(); //example for return types of T = string Freq1.FreqOccur(); //example for return types of T = Object SelectIntMatrix(IQueryable, params Func[]) Retrieves a filtered IQueryable list of integer matrices, based on their corresponding filtering condition of the anonymous function as parameter. public static IQueryable SelectIntMatrix(this IQueryable source, params Func[] conditions) Parameters source IQueryable Input data source IQueryable of Large strings of Numerical values conditions Func[] Anonymous function used for conditional predicate selections for retrieving IQueryable of transformed 2-dim matrices Returns IQueryable Filtered IQueryable list of integer matrices transformed based on the conditional predicate of the anonymous parameter function as an input Examples Retrieval cases for filtered/transformed input strings that require also data input cleanup. NOTE: WILL THROW a System.OutofMemoryException for 2-Dim matrix values of sizes 1000x1000. Output matrices accomodate string representation of numeric integer values of up to 1M of digits with no issues. Larger values of above 1M require more detailed testing. IQueryable BigNumStrs = new List { null, \"\", \"0\", \"1\", \"0\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004411111111111111111111111111111111111111111111111111111555555555555555555555555444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"999999990000000000000000000000000000000000000000\", \"ABD34783489BSNCI328932902309239032092390320dnsjiansiNDUsA9802398nfuiwn3e80c9unu2289cn2\", \"2962728abcs1119__1\", null, \"89348934988324934438492\", \"547849823200%$9232\", string.Empty, \"$7823934222220.00943\", @\"99999999999\\99999.999999\\.999\" }.AsQueryable(); IQueryable BigNumStrsAdded = new List { null, \"111133354421999999990111110434341113443492-0323--0222999\", \"999000===493\", \"84848349349999hsus29229cusudshu0992\", \"34r4f3f3f3343\", }.AsQueryable(); IQueryable BigNumStrs2 = new List { null, \"9999999900\", \"4389433493\", \"34r4f3f3f3343\", \" 83483943fd43f_0f34043f0)/__f34/\" }.AsQueryable(); IQueryable NullSeq = new List { null, null, \"\", string.Empty, \" 334\", \"b 889 //\" }.AsQueryable(); var EmptySetNullChecks = null ?? new List { }.AsQueryable(); BigNumStrs.SelectIntMatrix(n => n.Length > 3422 || n.Length != 2232); // will return all that match string size of above 3422 as a 1-dim array and everything that is of string size 2232 as a 2-dim one. BigNumStrs.SelectIntMatrix(); // wille return all input string-based integer representation as 2-dim arrays in an IQueryable. BigNumStrsAdded.SelectIntMatrix(n => n.Length == 900); // will return all predicate conditional matches as a 1-dim array if not matched returns a 2-dim one. BigNumStrsAdded.SelectIntMatrix(n => n.Length != 9000); //will return all predicate conditional matches as a 1-dim array if not matched returns a 2-dim one. EmptySetNullChecks .SelectIntMatrix() //Result N/A, will throw an exception if left with no null default. SelectIntMatrix(IQueryable, int) Retrieves a filtered IQueryable list of integer matrices such that their total dimensions equals to the maximum string length of defaultLen that is prespecified as input parameter. public static IQueryable SelectIntMatrix(this IQueryable source, int defaultLen = 0) Parameters source IQueryable Input data source IQueryable of Large strings of Numerical values defaultLen int Maximum used length of the string to be output as an integer matrix Notes: - Defaults to value of zero if none specified as an argument and outputs unfiltered list of transformed strings to matrices. - When a value above 900 is specified, strings are transformed to 1 dimensional arrays. Returns IQueryable Filtered IQueryable list of integer matrices based on their string input value counterparts of length = defaultLen Examples Retrieval cases for filtered/transformed input strings that require also data input cleanup. NOTE: WILL THROW a System.OutofMemoryException for 2-Dim matrix values of sizes 1000x1000. Output matrices accomodate string representation of numeric integer values of up to 1M of digits with no issues. Larger values of above 1M require more detailed testing. IQueryable BigNumStrs = new List { null, \"\", \"0\", \"1\", \"0\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004411111111111111111111111111111111111111111111111111111555555555555555555555555444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"999999990000000000000000000000000000000000000000\", \"ABD34783489BSNCI328932902309239032092390320dnsjiansiNDUsA9802398nfuiwn3e80c9unu2289cn2\", \"2962728abcs1119__1\", null, \"89348934988324934438492\", \"547849823200%$9232\", string.Empty, \"$7823934222220.00943\", @\"99999999999\\99999.999999\\.999\" }.AsQueryable(); IQueryable BigNumStrsAdded = new List { null, \"111133354421999999990111110434341113443492-0323--0222999\", \"999000===493\", \"84848349349999hsus29229cusudshu0992\", \"34r4f3f3f3343\", }.AsQueryable(); IQueryable BigNumStrs2 = new List { null, \"9999999900\", \"4389433493\", \"34r4f3f3f3343\", \" 83483943fd43f_0f34043f0)/__f34/\" }.AsQueryable(); IQueryable NullSeq = new List { null, null, \"\", string.Empty, \" 334\", \"b 889 //\" }.AsQueryable(); var EmptySetNullChecks = null ?? new List { }.AsQueryable(); BigNumStrs.SelectIntMatrix(); //return all input string-based integer representation as 2-dimensional arrays in an IQueryable. BigNumStrsAdded.SelectIntMatrix(2232); // return the input string-based integer representation of specified length as a 1-dimensional array. BigNumStrsAdded.SelectIntMatrix(237); //return the input string-based integer representation of specified length as a 2-dimensional array. EmptySetNullChecks .SelectIntMatrix(); //Result N/A, will throw an exception if left with no null default. Select(IQueryable, Expression>) Source Implementation for custom \"Select()\" public static IQueryable Select(this IQueryable source, Expression> predicate) Parameters source IQueryable predicate Expression> Returns IQueryable Type Parameters TSource T WhereDist(IQueryable, string, int) Retrieves a Queryable of string based on IEnumerable of string data types that equal to a current hamming value of N and input type str2 that are checked against. public static IQueryable WhereDist(this IQueryable str1, string str2, int distCheck) Parameters str1 IQueryable The leftmost string part to compare with str2 string The rightmost string part to compare against distCheck int The hamming value to check per string comparison Returns IQueryable Filtered IQueryable list of generic strings with same resulting hamming comparison value. Type Parameters T Examples Filtering per string and hamming code comparison part. IQueryable hamCheckStr = new List{\"test1\",\"test2\",\"test3\",\"test2\",\"10times49\",\"20times46\",\"times\"}.AsQueryable(); var sourceStrings = new List { \"abc\", \"def\", \"xyz\" }.AsQueryable(); sourceStrings.WhereDist(\"abg\",1); sourceStrings.WhereDist(\"aee\",2); hamCheckStr.WhereDist(\"test3\",1); // all return the appropriate filtered queryable search results. Where(IQueryable, Expression>) Source Implementation for custom \"Where()\" public static IQueryable Where(this IQueryable source, Expression> predicate) Parameters source IQueryable predicate Expression> Returns IQueryable Type Parameters TSource" + "keywords": "Class DataCalc Namespace Queryabl Assembly Queryabl.dll Main class for extended functionality. Includes implementation of linq fluent clauses for \"Where\", \"Select\" with relevent customizations. public static class DataCalc Inheritance object DataCalc Inherited Members object.ToString() object.Equals(object) object.Equals(object, object) object.ReferenceEquals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() Methods CollEvenLength(IEnumerable>) Retrieves an IEnumerable of generic collections that have an odd/even length and uses fluent syntax. public static IEnumerable> CollEvenLength(this IEnumerable> source) Parameters source IEnumerable> Input data source of IEnumerable of enumerations Returns IEnumerable> Filtered IEnumerable list of generic collections of odd or even lengths. Type Parameters T Examples Filtering of nested lists based on their odd/even size. var test_list = new {new List{1,3,4,4}, new List{43,54,32}, new List{99,10,403,10,20,10}, new List{1}, new List{90,40} }.AsQueryable(); test_list.CollEvenLength(); //returns all lists that have even size. test_list.CollEvenLength().Take(1); //returns first list of elements that has even size. test_list.CollEvenLength().Take(2)); //retruns two lists of elements that have even size. CollEvenLength(IQueryable>) Retrieves a Queryable of IEnumerable collections that have an odd/even length and uses fluent syntax. public static IQueryable> CollEvenLength(this IQueryable> source) Parameters source IQueryable> Input data source of IQueryable of enumerations Returns IQueryable> Filtered IQueryable list of generic collections of odd or even lengths. Type Parameters T Examples Filtering of lists based on their odd/even size. var test_list = new {new List{1,3,4,4}, new List{43,54,32}, new List{99,10,403,10,20,10}, new List{1}, new List{90,40} }.AsQueryable(); test_list.CollEvenLength(); //returns all lists that have even size. test_list.CollEvenLength().Take(1); //returns first list of elements that has even size. test_list.CollEvenLength().Take(2)); //retruns two lists of elements that have even size. FilterNumerics(IEnumerable) NOTE: This is an example of how this should be done if implemented in code using methods (still Where(), Select() can be used). Allows for mixed generic enumerated data type filtering, retrieves and filters all numerical values only from the generic IEnumerable list. public static IEnumerable FilterNumerics(this IEnumerable source) Parameters source IEnumerable Input data source of IEnumerable Returns IEnumerable Filtered generic IEnumerable list of values Type Parameters T Examples Get the numbers from a mixed data type list. var ienum_mixed = new List{ 103,\"vffsd\",\"fmos\",new List{\"gfdfs\",\"fsd\",\"3489\"},9.0,89.3m,99.42m,1,90000000000}; var ienum_nums = ienum_mixed.FilterNumerics(); FilterNumerics(IEnumerable, Func) NOTE: This is an example of how this should be done if implemented in code using methods (still Where(), Select() can be used). Additional examples displaying extended usage on generic IEnumerables/IQueryables on mixed data types, uses anonymous function(s) for filtering. public static IEnumerable FilterNumerics(this IEnumerable source, Func predicate) Parameters source IEnumerable Input data source of IEnumerable predicate Func Anonymous function used as a predicate-based filter Returns IEnumerable Filtered generic enumerable list of values Type Parameters T Examples Get the numbers from a mixed data type list, simple examples with filters on queryable parts for extended numerical filtering on data cleanup operations. NOTE: FilterNumerics is used only for removing all non-numerical datatypes at once. IQueryable alldata = new List { 103, \"vffsd\", \"fmos\", new List { \"gfdfs\", \"fsd\", \"3489\" }, 9.0, 89.3m, 99.42m, 1, 90000000000 }.AsQueryable(); var numericValues = alldata.FilterNumerics(); //Sample Default Usage - With/Without FilterNumerics() // .Where(n => n is long); //select only long // .Where(n => n.ToString().Length > 10 == true); // select numeric values of prespecified length // .Where(n => n is UInt32); // select only uint // .Where(n => (n is Double) AND ((double)n >= 1)); //select only doubles 'AND' should be replaced with appropriate sign FreqObjsOccur(IQueryable) Retrieves a Queryable listing of the top most frequently occuring objects in the IQueryable input source of object type T. public static IQueryable FreqObjsOccur(this IQueryable source) Parameters source IQueryable Input data source of IQueryable of generic enumerations Returns IQueryable Filtered IQueryable list of the most frequently occuring objects of types T - Can return multiple types of objects. Type Parameters T Examples Retrieval of all most frequently occuring objects in the input IQueryable of objects type. Multiple return types included in the results. NOTE: Prespecified class definitions for tests provided at 'code' section. public class Person { public string name = \"\"; public string surname = \"\"; public int age = 0; public Person(string n, string sn) { this.name = n; this.surname = sn; } } public class Animal { public string species = \"\"; public Animal(string spec) { this.species = spec; } } public class Dog { public string name = \"\"; public Dog(string n) { this.name = n; } } var per1 = new Person(\"john\", \"six\"); var anim3 = new Animal(\"Reptile\"); var anim2 = new Animal(\"canine\"); var anim1 = new Animal(\"feline\"); var dog1 = new Dog(\"spok\"); var per2 = new Person(\"john\", \"1\"); var dog2 = new Dog(\"tim\"); var per3 = new Person(\"john\", \"test\"); IQueryable Freq1 = new List { \"gtes\", 11, 15, 15, anim3, anim2, dog2, dog2, dog2, dog2, dog1, per4, per4, per1, per2, per3, 190, 190, 190, \"vdvd\", \"3489\" }.AsQueryable(); Freq1.FreqObjsOccur(); //example for return types of T = Object FreqOccur(IQueryable) Retrieves the most frequently occuring object in the IQueryable input source of object type T. public static T FreqOccur(this IQueryable source) Parameters source IQueryable Input data source of IQueryable of generic enumerations Returns T The single most frequently-occuring object of type T Type Parameters T Examples Retrieval of the most frequently occuring value of either int/string other from IQueryable. NOTE: Prespecified class definitions for tests provided at 'code' section. public class Person { public string name = \"\"; public string surname = \"\"; public int age = 0; public Person(string n, string sn) { this.name = n; this.surname = sn; } } public class Animal { public string species = \"\"; public Animal(string spec) { this.species = spec; } } public class Dog { public string name = \"\"; public Dog(string n) { this.name = n; } } var per1 = new Person(\"john\", \"six\"); var anim3 = new Animal(\"Reptile\"); var anim2 = new Animal(\"canine\"); var anim1 = new Animal(\"feline\"); var dog1 = new Dog(\"spok\"); var per2 = new Person(\"john\", \"1\"); var dog2 = new Dog(\"tim\"); var per3 = new Person(\"john\", \"test\"); IQueryable testFreqOcc = new List{1,5,5,6,7,7,7,7,72,2,1,4,6,11,11,11,11,11,88,88,7,34,43,5,88,61,14,23,11,100}.AsQueryable(); IQueryable freqSeq2 = new List { \"gg\", \"4334\", \"4334\", \"4554\", \"gg\", \"gg\", \"gg\", \"9000\" }.AsQueryable(); IQueryable Freq1 = new List { \"gtes\", 11, 15, 15, anim3, anim2, dog2, dog2, dog2, dog2, dog1, per4, per4, per1, per2, per3, 190, 190, 190, \"vdvd\", \"3489\" }.AsQueryable(); testFreqOcc.FreqOccur(); //example for return types of T = int freqSeq2.FreqOccur(); //example for return types of T = string Freq1.FreqOccur(); //example for return types of T = Object SelectIntMatrix(IQueryable, params Func[]) Retrieves a filtered IQueryable list of integer matrices, based on their corresponding filtering condition of the anonymous function as parameter. public static IQueryable SelectIntMatrix(this IQueryable source, params Func[] conditions) Parameters source IQueryable Input data source IQueryable of Large strings of Numerical values conditions Func[] Anonymous function used for conditional predicate selections for retrieving IQueryable of transformed 2-dim matrices Returns IQueryable Filtered IQueryable list of integer matrices transformed based on the conditional predicate of the anonymous parameter function as an input Examples Retrieval cases for filtered/transformed input strings that require also data input cleanup. NOTE: WILL THROW a System.OutofMemoryException for 2-Dim matrix values of sizes 1000x1000. Output matrices accomodate string representation of numeric integer values of up to 1M of digits with no issues. Larger values of above 1M require more detailed testing. IQueryable BigNumStrs = new List { null, \"\", \"0\", \"1\", \"0\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004411111111111111111111111111111111111111111111111111111555555555555555555555555444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"999999990000000000000000000000000000000000000000\", \"ABD34783489BSNCI328932902309239032092390320dnsjiansiNDUsA9802398nfuiwn3e80c9unu2289cn2\", \"2962728abcs1119__1\", null, \"89348934988324934438492\", \"547849823200%$9232\", string.Empty, \"$7823934222220.00943\", @\"99999999999\\99999.999999\\.999\" }.AsQueryable(); IQueryable BigNumStrsAdded = new List { null, \"111133354421999999990111110434341113443492-0323--0222999\", \"999000===493\", \"84848349349999hsus29229cusudshu0992\", \"34r4f3f3f3343\", }.AsQueryable(); IQueryable BigNumStrs2 = new List { null, \"9999999900\", \"4389433493\", \"34r4f3f3f3343\", \" 83483943fd43f_0f34043f0)/__f34/\" }.AsQueryable(); IQueryable NullSeq = new List { null, null, \"\", string.Empty, \" 334\", \"b 889 //\" }.AsQueryable(); var EmptySetNullChecks = null ?? new List { }.AsQueryable(); BigNumStrs.SelectIntMatrix(n => n.Length > 3422 || n.Length != 2232); // will return all that match string size of above 3422 as a 1-dim array and everything that is of string size 2232 as a 2-dim one. BigNumStrs.SelectIntMatrix(); // wille return all input string-based integer representation as 2-dim arrays in an IQueryable. BigNumStrsAdded.SelectIntMatrix(n => n.Length == 900); // will return all predicate conditional matches as a 1-dim array if not matched returns a 2-dim one. BigNumStrsAdded.SelectIntMatrix(n => n.Length != 9000); //will return all predicate conditional matches as a 1-dim array if not matched returns a 2-dim one. EmptySetNullChecks .SelectIntMatrix() //Result N/A, will throw an exception if left with no null default. SelectIntMatrix(IQueryable, int) Retrieves a filtered IQueryable list of integer matrices such that their total dimensions equals to the maximum string length of defaultLen that is prespecified as input parameter. public static IQueryable SelectIntMatrix(this IQueryable source, int defaultLen = 0) Parameters source IQueryable Input data source IQueryable of Large strings of Numerical values defaultLen int Maximum used length of the string to be output as an integer matrix Notes: - Defaults to value of zero if none specified as an argument and outputs unfiltered list of transformed strings to matrices. - When a value above 900 is specified, strings are transformed to 1 dimensional arrays. Returns IQueryable Filtered IQueryable list of integer matrices based on their string input value counterparts of length = defaultLen Examples Retrieval cases for filtered/transformed input strings that require also data input cleanup. NOTE: WILL THROW a System.OutofMemoryException for 2-Dim matrix values of sizes 1000x1000. Output matrices accomodate string representation of numeric integer values of up to 1M of digits with no issues. Larger values of above 1M require more detailed testing. IQueryable BigNumStrs = new List { null, \"\", \"0\", \"1\", \"0\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004411111111111111111111111111111111111111111111111111111555555555555555555555555444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"99999999004444444444444444444444444444444444444444444499999999000007777777777777777777777777777777777000000000000000009999999900000iiiiiiiiiii20202282828991111000009999888888888888888888888888888888888888888888888888888888888uu929192919uuuu00000000000013131313444(*)444_(*)\", \"999999990000000000000000000000000000000000000000\", \"ABD34783489BSNCI328932902309239032092390320dnsjiansiNDUsA9802398nfuiwn3e80c9unu2289cn2\", \"2962728abcs1119__1\", null, \"89348934988324934438492\", \"547849823200%$9232\", string.Empty, \"$7823934222220.00943\", @\"99999999999\\99999.999999\\.999\" }.AsQueryable(); IQueryable BigNumStrsAdded = new List { null, \"111133354421999999990111110434341113443492-0323--0222999\", \"999000===493\", \"84848349349999hsus29229cusudshu0992\", \"34r4f3f3f3343\", }.AsQueryable(); IQueryable BigNumStrs2 = new List { null, \"9999999900\", \"4389433493\", \"34r4f3f3f3343\", \" 83483943fd43f_0f34043f0)/__f34/\" }.AsQueryable(); IQueryable NullSeq = new List { null, null, \"\", string.Empty, \" 334\", \"b 889 //\" }.AsQueryable(); var EmptySetNullChecks = null ?? new List { }.AsQueryable(); BigNumStrs.SelectIntMatrix(); //return all input string-based integer representation as 2-dimensional arrays in an IQueryable. BigNumStrsAdded.SelectIntMatrix(2232); // return the input string-based integer representation of specified length as a 1-dimensional array. BigNumStrsAdded.SelectIntMatrix(237); //return the input string-based integer representation of specified length as a 2-dimensional array. EmptySetNullChecks .SelectIntMatrix(); //Result N/A, will throw an exception if left with no null default. Select(IQueryable, Expression>) Source Implementation for custom \"Select()\" public static IQueryable Select(this IQueryable source, Expression> predicate) Parameters source IQueryable predicate Expression> Returns IQueryable Type Parameters TSource T WhereDist(IQueryable, string, int) Retrieves a Queryable of string based on IEnumerable of string data types that equal to a current hamming value of N and input type str2 that are checked against. public static IQueryable WhereDist(this IQueryable str1, string str2, int distCheck) Parameters str1 IQueryable The leftmost string part to compare with str2 string The rightmost string part to compare against distCheck int The hamming value to check per string comparison Returns IQueryable Filtered IQueryable list of generic strings with same resulting hamming comparison value. Examples Filtering per string and hamming code comparison part. IQueryable hamCheckStr = new List{\"test1\",\"test2\",\"test3\",\"test2\",\"10times49\",\"20times46\",\"times\"}.AsQueryable(); var sourceStrings = new List { \"abc\", \"def\", \"xyz\" }.AsQueryable(); sourceStrings.WhereDist(\"abg\",1); sourceStrings.WhereDist(\"aee\",2); hamCheckStr.WhereDist(\"test3\",1); // all return the appropriate filtered queryable search results. Where(IQueryable, Expression>) Source Implementation for custom \"Where()\" public static IQueryable Where(this IQueryable source, Expression> predicate) Parameters source IQueryable predicate Expression> Returns IQueryable Type Parameters TSource" }, "docs/Queryabl.html": { "href": "docs/Queryabl.html", diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..ccb2d7b --- /dev/null +++ b/logo.svg @@ -0,0 +1,25 @@ + + + + +Created by Docfx + + + + + + + diff --git a/xrefmap.yml b/xrefmap.yml index ab98ebf..a225065 100644 --- a/xrefmap.yml +++ b/xrefmap.yml @@ -143,6 +143,15 @@ references: isSpec: "True" fullName: Queryabl.DataCalc.Where nameWithType: DataCalc.Where +- uid: Queryabl.DataCalc.WhereDist(System.Linq.IQueryable{System.String},System.String,System.Int32) + name: WhereDist(IQueryable, string, int) + href: docs/Queryabl.DataCalc.html#Queryabl_DataCalc_WhereDist_System_Linq_IQueryable_System_String__System_String_System_Int32_ + commentId: M:Queryabl.DataCalc.WhereDist(System.Linq.IQueryable{System.String},System.String,System.Int32) + name.vb: WhereDist(IQueryable(Of String), String, Integer) + fullName: Queryabl.DataCalc.WhereDist(System.Linq.IQueryable, string, int) + fullName.vb: Queryabl.DataCalc.WhereDist(System.Linq.IQueryable(Of String), String, Integer) + nameWithType: DataCalc.WhereDist(IQueryable, string, int) + nameWithType.vb: DataCalc.WhereDist(IQueryable(Of String), String, Integer) - uid: Queryabl.DataCalc.WhereDist* name: WhereDist href: docs/Queryabl.DataCalc.html#Queryabl_DataCalc_WhereDist_ @@ -150,15 +159,6 @@ references: isSpec: "True" fullName: Queryabl.DataCalc.WhereDist nameWithType: DataCalc.WhereDist -- uid: Queryabl.DataCalc.WhereDist``1(System.Linq.IQueryable{System.String},System.String,System.Int32) - name: WhereDist(IQueryable, string, int) - href: docs/Queryabl.DataCalc.html#Queryabl_DataCalc_WhereDist__1_System_Linq_IQueryable_System_String__System_String_System_Int32_ - commentId: M:Queryabl.DataCalc.WhereDist``1(System.Linq.IQueryable{System.String},System.String,System.Int32) - name.vb: WhereDist(Of T)(IQueryable(Of String), String, Integer) - fullName: Queryabl.DataCalc.WhereDist(System.Linq.IQueryable, string, int) - fullName.vb: Queryabl.DataCalc.WhereDist(Of T)(System.Linq.IQueryable(Of String), String, Integer) - nameWithType: DataCalc.WhereDist(IQueryable, string, int) - nameWithType.vb: DataCalc.WhereDist(Of T)(IQueryable(Of String), String, Integer) - uid: Queryabl.DataCalc.Where``1(System.Linq.IQueryable{``0},System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}}) name: Where(IQueryable, Expression>) href: docs/Queryabl.DataCalc.html#Queryabl_DataCalc_Where__1_System_Linq_IQueryable___0__System_Linq_Expressions_Expression_System_Func___0_System_Boolean___