Class: Webhookdb::Replicator::FakeHashPartition
- Includes:
- PartitionableMixin
- Defined in:
- lib/webhookdb/replicator/fake.rb
Constant Summary
Constants included from PartitionableMixin
PartitionableMixin::MAX_16BIT_INT
Constants inherited from Base
Constants included from DBAdapter::ColumnTypes
DBAdapter::ColumnTypes::BIGINT, DBAdapter::ColumnTypes::BIGINT_ARRAY, DBAdapter::ColumnTypes::BOOLEAN, DBAdapter::ColumnTypes::COLUMN_TYPES, DBAdapter::ColumnTypes::DATE, DBAdapter::ColumnTypes::DECIMAL, DBAdapter::ColumnTypes::DOUBLE, DBAdapter::ColumnTypes::FLOAT, DBAdapter::ColumnTypes::INTEGER, DBAdapter::ColumnTypes::INTEGER_ARRAY, DBAdapter::ColumnTypes::OBJECT, DBAdapter::ColumnTypes::TEXT, DBAdapter::ColumnTypes::TEXT_ARRAY, DBAdapter::ColumnTypes::TIMESTAMP, DBAdapter::ColumnTypes::UUID
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
- #_denormalized_columns ⇒ Object
- #partition_column_name ⇒ Object
- #partition_method ⇒ Object
- #partition_value(resource) ⇒ Object
Methods included from PartitionableMixin
#_prepare_for_insert, #_str2inthash, #_upsert_conflict_target, #existing_partitions, #partition?, #partition_align_name, #partition_suffix, #partitioning
Methods inherited from Fake
_descriptor, #_extra_index_specs, #_fetch_backfill_page, #_remote_key_column, #_resource_and_event, #_timestamp_column_name, #_update_where_expr, #_webhook_response, #calculate_backfill_state_machine, #calculate_webhook_state_machine, #dispatch_request_to, #preprocess_headers_for_logging, #process_webhooks_synchronously?, #requires_sequence?, reset, stub_backfill_request, #synchronous_processing_response_body, #upsert_has_deps?
Methods included from MethodUtilities
#attr_predicate, #attr_predicate_accessor, #singleton_attr_accessor, #singleton_attr_reader, #singleton_attr_writer, #singleton_method_alias, #singleton_predicate_accessor, #singleton_predicate_reader
Methods inherited from Base
#_any_subscriptions_to_notify?, #_backfill_state_change_fields, #_backfillers, #_clear_backfill_information, #_clear_webook_information, #_coalesce_excluded_on_update, #_enqueue_backfill_jobs, #_extra_index_specs, #_fetch_enrichment, #_find_dependency_candidate, #_notify_dependents, #_parallel_backfill, #_prepare_for_insert, #_publish_rowupsert, #_remote_key_column, #_resource_and_event, #_resource_to_data, #_store_enrichment_body?, #_timestamp_column_name, #_to_json, #_update_where_expr, #_upsert_conflict_target, #_upsert_update_expr, #_upsert_webhook, #_upsert_webhook_single_resource, #_verify_backfill_err_msg, #_webhook_response, #_webhook_state_change_fields, #admin_dataset, #avoid_writes?, #backfill, #backfill_not_supported_message, #calculate_and_backfill_state_machine, #calculate_backfill_state_machine, #calculate_dependency_state_machine_step, #calculate_preferred_create_state_machine, #calculate_webhook_state_machine, chunked_row_update_bounds, #clear_backfill_information, #clear_webhook_information, #create_table, #create_table_modification, #create_table_partitions, #data_column, #dbadapter_table, #denormalized_columns, #descriptor, #dispatch_request_to, #documentation_url, #enqueue_sync_targets, #enrichment_column, #ensure_all_columns, #ensure_all_columns_modification, #existing_partitions, #find_dependent, #find_dependent!, #indices, #initialize, #on_backfill_error, #on_dependency_webhook_upsert, #partition?, #partitioning, #preferred_create_state_machine_method, #preprocess_headers_for_logging, #primary_key_column, #process_state_change, #process_webhooks_synchronously?, #qualified_table_sequel_identifier, #readonly_dataset, #remote_key_column, #requires_sequence?, #resource_name_plural, #resource_name_singular, #schema_and_table_symbols, #storable_columns, #synchronous_processing_response_body, #timestamp_column, #upsert_has_deps?, #upsert_webhook, #upsert_webhook_body, #verify_backfill_credentials, #webhook_endpoint, #webhook_response, #with_advisory_lock
Constructor Details
This class inherits a constructor from Webhookdb::Replicator::Base
Class Method Details
.descriptor ⇒ Object
447 |
# File 'lib/webhookdb/replicator/fake.rb', line 447 def self.descriptor = self._descriptor |
Instance Method Details
#_denormalized_columns ⇒ Object
451 452 453 454 455 |
# File 'lib/webhookdb/replicator/fake.rb', line 451 def _denormalized_columns d = super d << Webhookdb::Replicator::Column.new(:hashkey, INTEGER, optional: true) return d end |
#partition_column_name ⇒ Object
458 |
# File 'lib/webhookdb/replicator/fake.rb', line 458 def partition_column_name = :hashkey |
#partition_method ⇒ Object
457 |
# File 'lib/webhookdb/replicator/fake.rb', line 457 def partition_method = Webhookdb::DBAdapter::Partitioning::HASH |
#partition_value(resource) ⇒ Object
459 |
# File 'lib/webhookdb/replicator/fake.rb', line 459 def partition_value(resource) = self._str2inthash(resource.fetch("my_id")) |