T
- the type of value produced by this node's operationpublic abstract class Node<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Node.Input<T>
An input to a node.
|
static class |
Node.NodeBuilder0
A factory for nodes with zero or more inputs.
|
static class |
Node.NodeBuilder1<A>
A factory for nodes with one or more inputs.
|
static class |
Node.NodeBuilder10<A,B,C,D,E,F,G,H,I,J>
A factory for nodes with ten inputs.
|
static class |
Node.NodeBuilder2<A,B>
A factory for nodes with two or more inputs.
|
static class |
Node.NodeBuilder3<A,B,C>
A factory for nodes with three or more inputs.
|
static class |
Node.NodeBuilder4<A,B,C,D>
A factory for nodes with four or more inputs.
|
static class |
Node.NodeBuilder5<A,B,C,D,E>
A factory for nodes with five or more inputs.
|
static class |
Node.NodeBuilder6<A,B,C,D,E,F>
A factory for nodes with six or more inputs.
|
static class |
Node.NodeBuilder7<A,B,C,D,E,F,G>
A factory for nodes with seven or more inputs.
|
static class |
Node.NodeBuilder8<A,B,C,D,E,F,G,H>
A factory for nodes with eight or more inputs.
|
static class |
Node.NodeBuilder9<A,B,C,D,E,F,G,H,I>
A factory for nodes with nine or more inputs.
|
Modifier and Type | Method and Description |
---|---|
<U> Node<U> |
andThen(Function<T,U> fn)
Returns a new node that is the result of applying the given function to the values produced by
this node.
|
static Node.NodeBuilder0 |
builder()
Returns a new node builder.
|
Set<Node<?>> |
dependencies()
The distinct set of other nodes that this node depends on.
|
Set<Key<?>> |
inputKeys()
The distinct set of inputs that are defined as
Key s. |
List<Node.Input<?>> |
inputs()
Returns the list of input edges to this node.
|
Graph<T> |
toGraph()
Returns a graph consisting of this node and its transitive dependencies.
|
public List<Node.Input<?>> inputs()
public Set<Key<?>> inputKeys()
Key
s. These inputs are bound to a
value when the computation graph is executed.Key
inputspublic Set<Node<?>> dependencies()
Node
inputspublic <U> Node<U> andThen(Function<T,U> fn)
fn
- the function that produces values for the new node, given products from this nodepublic Graph<T> toGraph()
public static Node.NodeBuilder0 builder()