当前位置: 首页>>代码示例>>Java>>正文


Java IndentWriter类代码示例

本文整理汇总了Java中com.espertech.esper.util.IndentWriter的典型用法代码示例。如果您正苦于以下问题:Java IndentWriter类的具体用法?Java IndentWriter怎么用?Java IndentWriter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IndentWriter类属于com.espertech.esper.util包,在下文中一共展示了IndentWriter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
public void print(IndentWriter writer) {
    writer.println("LookupInstructionExecNode" +
            " rootStream=" + rootStream +
            " name=" + rootStreamName +
            " requiredPerStream=" + Arrays.toString(requiredPerStream));

    writer.incrIndent();
    for (int i = 0; i < lookupInstructions.length; i++) {
        writer.println("lookup inst node " + i);
        writer.incrIndent();
        lookupInstructions[i].print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();

    writer.incrIndent();
    for (int i = 0; i < assemblyInstructions.length; i++) {
        writer.println("assembly inst node " + i);
        writer.incrIndent();
        assemblyInstructions[i].print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:25,代码来源:LookupInstructionExecNode.java

示例2: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Output the instruction.
 *
 * @param writer is the write to output to
 */
@SuppressWarnings({"StringContatenationInLoop"})
public void print(IndentWriter writer) {
    writer.println("LookupInstructionExec" +
            " fromStream=" + fromStream +
            " fromStreamName=" + fromStreamName +
            " numSubStreams=" + numSubStreams +
            " requiredSubStreams=" + Arrays.toString(requiredSubStreams) +
            " optionalSubStreams=" + Arrays.toString(optionalSubStreams));

    writer.incrIndent();
    for (int i = 0; i < lookupStrategies.length; i++) {
        writer.println("lookupStrategies[" + i + "] : " + lookupStrategies[i].toString());
    }
    writer.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:21,代码来源:LookupInstructionExec.java

示例3: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Output the planned instruction.
 *
 * @param writer to output to
 */
public void print(IndentWriter writer) {
    writer.println("LookupInstructionPlan" +
            " fromStream=" + fromStream +
            " fromStreamName=" + fromStreamName +
            " toStreams=" + Arrays.toString(toStreams)
    );

    writer.incrIndent();
    for (int i = 0; i < lookupPlans.length; i++) {
        if (lookupPlans[i] != null) {
            writer.println("plan " + i + " :" + lookupPlans[i].toString());
        } else {
            writer.println("plan " + i + " : no lookup plan");
        }
    }
    writer.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:23,代码来源:LookupInstructionPlan.java

示例4: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Print in readable format the execution plan spec.
 *
 * @param planNodeSpecs - plans to print
 * @return readable text with plans
 */
@SuppressWarnings({"StringConcatenationInsideStringBufferAppend", "StringContatenationInLoop"})
public static String print(QueryPlanNode[] planNodeSpecs) {
    StringBuilder buffer = new StringBuilder();
    buffer.append("QueryPlanNode[]\n");

    for (int i = 0; i < planNodeSpecs.length; i++) {
        buffer.append("  node spec " + i + " :\n");

        StringWriter buf = new StringWriter();
        PrintWriter printer = new PrintWriter(buf);
        IndentWriter indentWriter = new IndentWriter(printer, 4, 2);

        if (planNodeSpecs[i] != null) {
            planNodeSpecs[i].print(indentWriter);
        } else {
            indentWriter.println("no plan (historical)");
        }

        buffer.append(buf.toString());
    }

    return buffer.toString();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:30,代码来源:QueryPlanNode.java

示例5: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
protected void print(IndentWriter writer) {
    writer.println("LookupInstructionQueryPlanNode" +
            " rootStream=" + rootStream +
            " requiredPerStream=" + Arrays.toString(requiredPerStream));

    writer.incrIndent();
    for (int i = 0; i < lookupInstructions.size(); i++) {
        writer.println("lookup step " + i);
        writer.incrIndent();
        lookupInstructions.get(i).print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();

    writer.incrIndent();
    for (int i = 0; i < assemblyInstructionFactories.size(); i++) {
        writer.println("assembly step " + i);
        writer.incrIndent();
        assemblyInstructionFactories.get(i).print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:24,代码来源:LookupInstructionQueryPlanNode.java

示例6: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Output the instruction.
 * @param writer is the write to output to
 */
@SuppressWarnings({"StringContatenationInLoop"})
public void print(IndentWriter writer)
{
    writer.println("LookupInstructionExec" +
            " fromStream=" + fromStream +
            " fromStreamName=" + fromStreamName +
            " numSubStreams=" + numSubStreams +
            " requiredSubStreams=" + Arrays.toString(requiredSubStreams) +
            " optionalSubStreams=" + Arrays.toString(optionalSubStreams));

    writer.incrIndent();
    for (int i = 0; i < lookupStrategies.length; i++)
    {
        writer.println("lookupStrategies[" + i + "] : " + lookupStrategies[i].toString());
    }
    writer.decrIndent();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:22,代码来源:LookupInstructionExec.java

示例7: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Output the planned instruction.
 * @param writer to output to
 */
public void print(IndentWriter writer)
{
    writer.println("LookupInstructionPlan" +
            " fromStream=" + fromStream +
            " fromStreamName=" + fromStreamName +
            " toStreams=" + Arrays.toString(toStreams)
            );

    writer.incrIndent();
    for (int i = 0; i < lookupPlans.length; i++)
    {
        if (lookupPlans[i] != null)
        {
            writer.println("plan " + i + " :" + lookupPlans[i].toString());
        }
        else
        {
            writer.println("plan " + i + " : no lookup plan");
        }
    }
    writer.decrIndent();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:27,代码来源:LookupInstructionPlan.java

示例8: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
protected void print(IndentWriter writer)
{
    writer.println("LookupInstructionQueryPlanNode" +
            " rootStream=" + rootStream +
            " requiredPerStream=" + Arrays.toString(requiredPerStream));

    writer.incrIndent();
    for (int i = 0; i < lookupInstructions.size(); i++)
    {
        writer.println("lookup step " + i);
        writer.incrIndent();
        lookupInstructions.get(i).print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();

    writer.incrIndent();
    for (int i = 0; i < assemblyInstructions.size(); i++)
    {
        writer.println("assembly step " + i);
        writer.incrIndent();
        assemblyInstructions.get(i).print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:27,代码来源:LookupInstructionQueryPlanNode.java

示例9: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
public void print(IndentWriter writer) {
    writer.println("NestedIterationExecNode");
    writer.incrIndent();

    for (ExecNode child : childNodes) {
        child.print(writer);
    }
    writer.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:NestedIterationExecNode.java

示例10: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Print in readable format the execution strategy.
 *
 * @param execNode - execution node to print
 * @return readable text with execution nodes constructed for actual streams
 */
public static String print(ExecNode execNode) {
    StringWriter buf = new StringWriter();
    PrintWriter printer = new PrintWriter(buf);
    IndentWriter indentWriter = new IndentWriter(printer, 4, 2);
    execNode.print(indentWriter);

    return buf.toString();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:15,代码来源:ExecNode.java

示例11: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
public void print(IndentWriter indentWriter) {
    indentWriter.println("NestedIterationNode with nesting order " + Arrays.toString(nestingOrder));
    indentWriter.incrIndent();
    for (QueryPlanNode child : childNodes) {
        child.print(indentWriter);
    }
    indentWriter.decrIndent();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:NestedIterationNode.java

示例12: printDescendends

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Output this node and all descendent nodes using writer, outputting child nodes.
 *
 * @param indentWriter to output to
 */
public void printDescendends(IndentWriter indentWriter) {
    this.print(indentWriter);
    for (BaseAssemblyNodeFactory child : childNodes) {
        indentWriter.incrIndent();
        child.print(indentWriter);
        indentWriter.decrIndent();
    }
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:14,代码来源:BaseAssemblyNodeFactory.java

示例13: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
public void print(IndentWriter writer)
{
    writer.println("NestedIterationExecNode");
    writer.incrIndent();

    for (ExecNode child : childNodes)
    {
        child.print(writer);
    }
    writer.decrIndent();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:12,代码来源:NestedIterationExecNode.java

示例14: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
/**
 * Print in readable format the execution strategy.
 * @param execNode - execution node to print
 * @return readable text with execution nodes constructed for actual streams
 */
public static String print(ExecNode execNode)
{
    StringWriter buf = new StringWriter();
    PrintWriter printer = new PrintWriter(buf);
    IndentWriter indentWriter = new IndentWriter(printer, 4, 2);
    execNode.print(indentWriter);

    return buf.toString();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:15,代码来源:ExecNode.java

示例15: print

import com.espertech.esper.util.IndentWriter; //导入依赖的package包/类
public void print(IndentWriter writer)
{
    writer.println("LookupInstructionExecNode" +
            " rootStream=" + rootStream +
            " name=" + rootStreamName +
            " requiredPerStream=" + Arrays.toString(requiredPerStream));

    writer.incrIndent();
    for (int i = 0; i < lookupInstructions.length; i++)
    {
        writer.println("lookup inst node " + i);
        writer.incrIndent();
        lookupInstructions[i].print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();

    writer.incrIndent();
    for (int i = 0; i < assemblyInstructions.length; i++)
    {
        writer.println("assembly inst node " + i);
        writer.incrIndent();
        assemblyInstructions[i].print(writer);
        writer.decrIndent();
    }
    writer.decrIndent();
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:28,代码来源:LookupInstructionExecNode.java


注:本文中的com.espertech.esper.util.IndentWriter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。