Module: Dataflow
- Defined in:
- lib/dataflow-rb.rb,
lib/dataflow/node.rb,
lib/dataflow/logger.rb,
lib/dataflow/version.rb,
lib/dataflow/event_mixin.rb,
lib/dataflow/schema_mixin.rb,
lib/dataflow/nodes/map_node.rb,
lib/dataflow/nodes/data_node.rb,
lib/dataflow/nodes/join_node.rb,
lib/dataflow/nodes/merge_node.rb,
lib/dataflow/properties_mixin.rb,
lib/dataflow/adapters/settings.rb,
lib/dataflow/nodes/upsert_node.rb,
lib/dataflow/nodes/compute_node.rb,
lib/dataflow/nodes/snapshot_node.rb,
lib/dataflow/adapters/csv_adapter.rb,
lib/dataflow/adapters/sql_adapter.rb,
lib/dataflow/nodes/sql_query_node.rb,
lib/dataflow/adapters/psql_adapter.rb,
lib/dataflow/adapters/mysql_adapter.rb,
lib/dataflow/nodes/select_keys_node.rb,
lib/dataflow/nodes/filter/where_node.rb,
lib/dataflow/nodes/export/to_csv_node.rb,
lib/dataflow/nodes/filter/newest_node.rb,
lib/dataflow/adapters/mongo_db_adapter.rb,
lib/dataflow/errors/not_implemented_error.rb,
lib/dataflow/nodes/filter/drop_while_node.rb,
lib/dataflow/nodes/mixin/rename_dotted_fields.rb,
lib/dataflow/nodes/transformation/to_time_node.rb,
lib/dataflow/errors/invalid_configuration_error.rb,
lib/dataflow/nodes/mixin/add_internal_timestamp.rb
Defined Under Namespace
Modules: Adapters, Errors, EventMixin, Node, Nodes, PropertiesMixin, SchemaMixin Classes: Logger
Constant Summary collapse
- CsvPath =
"#{Dir.pwd}/datanodes/csv"- VERSION =
'0.10.1'
Class Method Summary collapse
-
.compute_node(id) ⇒ Object
helper that tries to find a computed node by id and then name.
-
.data_node(id) ⇒ Object
helper that tries to find a data node by id and then by name.
Class Method Details
.compute_node(id) ⇒ Object
helper that tries to find a computed node by id and then name
67 68 69 70 71 |
# File 'lib/dataflow-rb.rb', line 67 def self.compute_node(id) Dataflow::Nodes::ComputeNode.find(id) rescue Mongoid::Errors::DocumentNotFound Dataflow::Nodes::ComputeNode.find_by(name: id) end |