Beispiel #1
0
        /// <inheritdoc />
        public override string ToEncodedString()
        {
            const string filterPattern = @"{{""type"":""RowFilter"",""op"":""{0}"",""comparator"":{{{1}}}}}";

            return(string.Format(CultureInfo.InvariantCulture, filterPattern, CompareOperation.ToCodeName(),
                                 Comparator.ToEncodedString()));
        }
Beispiel #2
0
        public override string ToEncodedString()
        {
            const string filterPattern =
                @"{{""type"":""DependentColumnFilter"",""op"":""{0}"",""family"":""{1}"",""qualifier"":""{2}"",""dropDependentColumn"":{3},""comparator"":{{{4}}}}}";

            return(string.Format(
                       CultureInfo.InvariantCulture,
                       filterPattern,
                       CompareOperation.ToCodeName(),
                       Convert.ToBase64String(Family),
                       Convert.ToBase64String(Qualifier),
                       DropDependentColumn.ToString(CultureInfo.InvariantCulture).ToLowerInvariant(),
                       Comparator.ToEncodedString()));
        }
        public override string ToEncodedString()
        {
            const string filterPattern =
                @"{{""type"":""SingleColumnValueFilter"",""op"":""{0}"",""family"":""{1}"",""qualifier"":""{2}"",""ifMissing"":{3},""latestVersion"":{4},""comparator"":{{{5}}}}}";

            return(string.Format(
                       CultureInfo.InvariantCulture,
                       filterPattern,
                       CompareOperation.ToCodeName(),
                       Convert.ToBase64String(Family),
                       Convert.ToBase64String(Qualifier),
                       FilterIfMissing.ToString(CultureInfo.InvariantCulture).ToLowerInvariant(),
                       LatestVersion.ToString(CultureInfo.InvariantCulture).ToLowerInvariant(),
                       Comparator.ToEncodedString()));
        }