Esempio n. 1
0
/// <summary>
/// <para>Create a new secondary index on a table. Secondary indexes improve the speed of many read queries at the slight cost of increased storage space and decreased write performance. For more information about secondary indexes, read the article "<a href="/docs/secondary-indexes/">Using secondary indexes in RethinkDB</a>."</para>
/// </summary>
/// <example><para>Example: Create a simple index based on the field <code>postId</code>.</para>
/// <code>r.table('comments').indexCreate('postId').run(conn, callback)
/// </code></example>
        public IndexCreate IndexCreate(Object expr, ReqlFunction0 func0)
        {
            Arguments arguments = new Arguments(this);

            arguments.CoerceAndAdd(expr);
            arguments.CoerceAndAdd(func0);
            return(new IndexCreate(arguments));
        }
Esempio n. 2
0
/// <summary>
/// <para>Loop over a sequence, evaluating the given write query for each element.</para>
/// </summary>
/// <example><para>Example: Now that our heroes have defeated their villains, we can safely remove them from the villain table.</para>
/// <code>r.table('marvel').forEach(function(hero) {
///     return r.table('villains').get(hero('villainDefeated')).delete()
/// }).run(conn, callback)
/// </code></example>
                        public ForEach forEach ( ReqlFunction0 func0 )
                        {
                        Arguments arguments = new Arguments(this);
                                arguments.CoerceAndAdd(func0);
                        return new ForEach (arguments );
                        }
Esempio n. 3
0
/// <summary>
/// <para>Transform each element of one or more sequences by applying a mapping function to them. If <code>map</code> is run with two or more sequences, it will iterate for as many items as there are in the shortest sequence.</para>
/// </summary>
/// <example><para>Example: Return the first five squares.</para>
/// <code>r.expr([1, 2, 3, 4, 5]).map(function (val) {
///     return val.mul(val);
/// }).run(conn, callback);
/// // Result passed to callback
/// [1, 4, 9, 16, 25]
/// </code></example>
                        public Map map ( ReqlFunction0 func0 )
                        {
                        Arguments arguments = new Arguments(this);
                                arguments.CoerceAndAdd(func0);
                        return new Map (arguments );
                        }
Esempio n. 4
0
 internal IndexCreate indexCreate(Object expr, ReqlFunction0 func0)
 {
     return(IndexCreate(expr, func0));
 }
Esempio n. 5
0
 internal ForEach forEach ( ReqlFunction0 func0 )
 {
    return ForEach ( func0 );
 }
Esempio n. 6
0
 internal Funcall do_ ( ReqlFunction0 func0 )
 {
    return Do_ ( func0 );
 }
Esempio n. 7
0
 internal Map map ( ReqlFunction0 func0 )
 {
    return Map ( func0 );
 }
Esempio n. 8
0
 public Funcall Do_ ( ReqlFunction0 func0 )
 {
     Arguments arguments = new Arguments();
     arguments.CoerceAndAdd(func0);
     return new Funcall (arguments);
 }
Esempio n. 9
0
 internal Map map ( Object expr, ReqlFunction0 func0 )
 {
    return Map ( expr, func0 );
 }
Esempio n. 10
0
/// <summary>
/// <para>Transform each element of one or more sequences by applying a mapping function to them. If <code>map</code> is run with two or more sequences, it will iterate for as many items as there are in the shortest sequence.</para>
///</summary>
/// <example><para>Example: Return the first five squares.</para>
/// <code>r.expr([1, 2, 3, 4, 5]).map(function (val) {
///     return val.mul(val);
/// }).run(conn, callback);
/// // Result passed to callback
/// [1, 4, 9, 16, 25]
/// </code></example>
                            public Map Map ( Object expr, ReqlFunction0 func0 )
                            {
                                Arguments arguments = new Arguments();
                                arguments.CoerceAndAdd(expr);
                                arguments.CoerceAndAdd(func0);
                                return new Map (arguments);
                            }
Esempio n. 11
0
 internal IndexCreate indexCreate ( Object expr, ReqlFunction0 func0 )
 {
    return IndexCreate ( expr, func0 );
 }
Esempio n. 12
0
/// <summary>
/// <para>Create a new secondary index on a table. Secondary indexes improve the speed of many read queries at the slight cost of increased storage space and decreased write performance. For more information about secondary indexes, read the article "<a href="/docs/secondary-indexes/">Using secondary indexes in RethinkDB</a>."</para>
/// </summary>
/// <example><para>Example: Create a simple index based on the field <code>postId</code>.</para>
/// <code>r.table('comments').indexCreate('postId').run(conn, callback)
/// </code></example>
                        public IndexCreate IndexCreate ( Object expr, ReqlFunction0 func0 )
                        {
                            Arguments arguments = new Arguments(this);
                            arguments.CoerceAndAdd(expr);
                            arguments.CoerceAndAdd(func0);
                            return new IndexCreate (arguments );
                        }