本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}
示例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();
}
示例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();
}