@Override public AstWriteFlushNode visitWriteFlushNode(WriteFlushNodeContext ctx) { node = new AstWriteFlushNode(); node.setRegionInfo(asSequentialRegion(childInfos, ctx)); return node; }
public StreamNested(R builder) { super(new AstWriteFlushNode(), builder); }
@Override public Configuration visit(AstWriteFlushNode node, State state) { FlushHandler handler = new FlushHandler(); handler.setRegionInfo(node.getRegionInfo()); String handlerName = String.format("flush#%d", state.pipelineAsMap.size() + 1); state.pipelineAsMap.put(handlerName, handler); return state.configuration; }
public AstWriteFlushNodeBuilder() { this(new AstWriteFlushNode()); }
@Override public AstWriteFlushNode visitWriteFlushNode(WriteFlushNodeContext ctx) { AstWriteFlushNodeVisitor visitor = new AstWriteFlushNodeVisitor(factory, environment); AstWriteFlushNode writeFlushNode = visitor.visitWriteFlushNode(ctx); if (writeFlushNode != null) { childInfos().add(writeFlushNode.getRegionInfo()); } return writeFlushNode; }
@Override public AstScriptNode visit(AstReadValueNode node, State state) { switch (state.writeState) { case CONFIG_ONLY: AstWriteFlushNode flush = new AstWriteFlushNode(); flush.setRegionInfo(node.getRegionInfo()); visit(flush, state); break; default: break; } state.streamables.add(node); state.readState = ReadWriteState.CONFIG_OR_VALUE; return null; }
public AstFlushNodeBuilder() { this(new AstWriteFlushNode()); }
@Override public AstScriptNode visit(AstReadConfigNode node, State state) { switch (state.writeState) { case CONFIG_ONLY: AstWriteFlushNode flush = new AstWriteFlushNode(); flush.setRegionInfo(node.getRegionInfo()); visit(flush, state); break; default: break; } state.streamables.add(node); switch (state.readState) { case NONE: case CONFIG_ONLY: case CONFIG_OR_VALUE: break; default: state.readState = ReadWriteState.CONFIG_ONLY; break; } return null; }
public StreamNested(R builder) { super(new AstWriteFlushNode(), builder); }