public void QueryPredicate3()
        {
            int begin = 10;
            int end   = 45;

            Statement stmt = new Statement();

            stmt.SetNamespace(args.ns);
            stmt.SetSetName(setName);
            stmt.SetFilter(Filter.Range(binName, begin, end));
            stmt.SetPredExp(
                PredExp.RecLastUpdate(),
                PredExp.IntegerValue(DateTime.UtcNow.Add(TimeSpan.FromSeconds(1.0))),
                PredExp.IntegerGreater()
                );

            RecordSet rs = client.Query(null, stmt);

            try
            {
                //int count = 0;

                while (rs.Next())
                {
                    //Record record = rs.Record;
                    //Console.WriteLine(record.GetValue(binName).ToString() + ' ' + record.expiration);
                    //count++;
                }
                // Do not asset count since some tests can run after this one.
                //Assert.AreEqual(0, count);
            }
            finally
            {
                rs.Close();
            }
        }
        public void QueryPredicate5()
        {
            int begin = 1;
            int end   = 10;

            Statement stmt = new Statement();

            stmt.SetNamespace(args.ns);
            stmt.SetSetName(setName);
            stmt.SetFilter(Filter.Range(binName, begin, end));
            stmt.SetPredExp(
                PredExp.IntegerVar("x"),
                PredExp.IntegerValue(5),
                PredExp.IntegerUnequal(),
                PredExp.ListBin("listbin"),
                PredExp.ListIterateAnd("x")
                );

            RecordSet rs = client.Query(null, stmt);

            try
            {
                int count = 0;

                while (rs.Next())
                {
                    //Console.WriteLine(rs.Record.ToString());
                    count++;
                }
                Assert.AreEqual(8, count);
            }
            finally
            {
                rs.Close();
            }
        }
        public void QueryPredicate7()
        {
            int begin = 1;
            int end   = 10;

            Statement stmt = new Statement();

            stmt.SetNamespace(args.ns);
            stmt.SetSetName(setName);
            stmt.SetFilter(Filter.Range(binName, begin, end));
            stmt.SetPredExp(
                PredExp.StringVar("x"),
                PredExp.StringValue("BBB"),
                PredExp.StringEqual(),
                PredExp.MapBin("mapbin"),
                PredExp.MapValIterateOr("x")
                );

            RecordSet rs = client.Query(null, stmt);

            try
            {
                int count = 0;

                while (rs.Next())
                {
                    //Console.WriteLine(rs.Record.ToString());
                    count++;
                }
                Assert.AreEqual(1, count);
            }
            finally
            {
                rs.Close();
            }
        }