T - the model typepublic final class OpenModelSink<T> extends CompositeOperator implements SinkOperator<AbstractModelPort<T>>
CompositeOperator.| Constructor and Description |
|---|
OpenModelSink(LogicalPortFactory<? extends AbstractModelPort<T>> portFactory)
Create a model sink for the given model port type.
|
| Modifier and Type | Method and Description |
|---|---|
<O extends LogicalOperator> |
add(O op)
Add a LogicalOperator to this graph, using the short class name as the name
of the operator.
|
<O extends LogicalOperator> |
add(O op,
OperatorSettings settings)
Add a LogicalOperator to this graph, specifying advanced operator settings.
|
<O extends LogicalOperator> |
add(O op,
String name)
Add a LogicalOperator to this graph, specifying a name of the operator.
|
protected void |
compose(CompositionContext ctx)
This implementation of compose adds any operators were added to this
to the provided composition context and creates any connections that
were added to this in the provided composition context.
|
void |
connect(LogicalPort from,
LogicalPort to)
Connect two ports together.
|
void |
connectInput(AbstractModelPort<T> to) |
AbstractModelPort<T> |
getInput()
Returns the input port
|
Object |
getProperty(GraphPath path)
Returns a property of the given path.
|
Object |
getProperty(String path)
Returns a property of the given path.
|
void |
setProperty(GraphPath path,
Object value)
Sets a property of the given path.
|
void |
setProperty(String path,
Object value)
Sets a property of the given path.
|
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableParallelism, getInputPorts, getOutputPortspublic OpenModelSink(LogicalPortFactory<? extends AbstractModelPort<T>> portFactory)
add and connect.portFactory - the factory for the model port, determines the port typepublic AbstractModelPort<T> getInput()
SinkOperatorgetInput in interface SinkOperator<AbstractModelPort<T>>public void connectInput(AbstractModelPort<T> to)
protected final void compose(CompositionContext ctx)
compose in class CompositeOperatorctx - the contextpublic final <O extends LogicalOperator> O add(O op)
OperatorComposableadd in interface OperatorComposableO - the type of the operator.op - the operator to add to the graph.public final <O extends LogicalOperator> O add(O op, String name)
OperatorComposableadd in interface OperatorComposableO - the type of the operator.op - the operator to add to the graph.name - the name of the the operatorpublic final <O extends LogicalOperator> O add(O op, OperatorSettings settings)
OperatorComposableadd in interface OperatorComposableO - the type of the operator.op - the operator to add to the graph.settings - operators settings, contains name and other configuration options.public final void connect(LogicalPort from, LogicalPort to)
OperatorComposableCompositeOperator to an input port of an operator that was added to this context. (Applies to CompositeOperator.compose(com.pervasive.datarush.operators.CompositionContext)).CompositeOperator. (Applies to CompositeOperator.compose(com.pervasive.datarush.operators.CompositionContext)).Note on port types: connecting mixed type ports will generally fail when the graph is compiled.
Note that ports do not store connection information; rather, connection information is stored externally within this context.
connect in interface OperatorComposablefrom - the source portto - the target portpublic final Object getProperty(GraphPath path)
PropertyValuedgetProperty in interface PropertyValuedpath - the path to the property.public final void setProperty(GraphPath path, Object value)
PropertyValuedsetProperty in interface PropertyValuedpath - the path to the property.value - the new value of the propertypublic final Object getProperty(String path)
PropertyValuedgetProperty in interface PropertyValuedpath - the path to the property.public final void setProperty(String path, Object value)
PropertyValuedsetProperty in interface PropertyValuedpath - the path to the property.value - the new value of the propertyCopyright © 2016 Actian Corporation. All rights reserved.