Ejemplo n.º 1
0
        internal string GenerateEsql()
        {
            CqlBlock      cqlBlockTree = this.GenerateCqlBlockTree();
            StringBuilder builder      = new StringBuilder(1024);

            cqlBlockTree.AsEsql(builder, true, 1);
            return(builder.ToString());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns eSQL query that represents a query/update mapping view for the view information that was supplied in the constructor.
        /// </summary>
        internal string GenerateEsql()
        {
            // Generate a CqlBlock tree and then convert that to eSQL.
            CqlBlock blockTree = GenerateCqlBlockTree();

            // Create the string builder with 1K so that we don't have to
            // keep growing it
            StringBuilder builder = new StringBuilder(1024);

            blockTree.AsEsql(builder, true, 1);
            return(builder.ToString());
        }
Ejemplo n.º 3
0
        // effects: Modifies builder to contain a Cql query corresponding to
        // the tree rooted at this
        internal override void ToFullString(StringBuilder builder)
        {
            int blockAliasNum = 0;

            // Get the required slots, get the block and then get the string
            bool[] requiredSlots = GetProjectedSlots();
            // Using empty identifiers over here since we do not use this for the actual CqlGeneration
            CqlIdentifiers          identifiers       = new CqlIdentifiers();
            List <WithRelationship> withRelationships = new List <WithRelationship>();
            CqlBlock block = ToCqlBlock(requiredSlots, identifiers, ref blockAliasNum, ref withRelationships);

            block.AsEsql(builder, false, 1);
        }