Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.
Aus WooCommerce Entitäten lesen
Voraussetzung
Ein WooCommerce Objekt, aus dem Sie lesen möchten. Sie benötigen den Objektnamen wie Gutschein, Bestellung, Produkt usw.
Unterstützte Entitäten für Quelle:
| Entität | Kann gefiltert werden | Unterstützt Limit | Unterstützt „Sortieren nach“ | Unterstützt „* auswählen“ | Unterstützt Partitionierung |
|---|---|---|---|---|---|
| Coupon | Ja | Ja | Ja | Ja | Ja |
| Coupon insgesamt | Nein | Nein | Nein | Ja | Nein |
| Kunden insgesamt | Nein | Nein | Nein | Ja | Nein |
| Order | Ja | Ja | Ja | Ja | Ja |
| Bestellungen insgesamt | Nein | Nein | Nein | Ja | Nein |
| Zahlungsgateway | Nein | Nein | Nein | Ja | Nein |
| Produkt | Ja | Ja | Ja | Ja | Ja |
| Produktattribut | Ja | Ja | Ja | Ja | Ja |
| Produktkategorie | Ja | Ja | Ja | Ja | Ja |
| Produktbewertung | Ja | Ja | Ja | Ja | Ja |
| Versandklasse des Produkts | Ja | Ja | Ja | Ja | Ja |
| Produkt-Tag | Ja | Ja | Ja | Ja | Ja |
| Produktvariation | Ja | Ja | Ja | Ja | Ja |
| Produkte insgesamt | Nein | Nein | Nein | Ja | Nein |
| Bericht (Liste) | Nein | Nein | Nein | Ja | Nein |
| Bewertungen insgesamt | Nein | Nein | Nein | Ja | Nein |
| Verkaufsbericht | Ja | Nein | Nein | Ja | Nein |
| Versandmethoden | Nein | Nein | Nein | Ja | Nein |
| Versandzone | Nein | Nein | Nein | Ja | Nein |
| Versandzonenstandort | Nein | Nein | Nein | Ja | Nein |
| Versandzonenmethode | Nein | Nein | Nein | Ja | Nein |
| Steuersatz | Ja | Ja | Ja | Ja | Ja |
| Steuerklasse | Nein | Nein | Nein | Ja | Nein |
| Bericht über Topseller | Ja | Nein | Nein | Ja | Nein |
Beispiel:
woocommerce_read = glueContext.create_dynamic_frame.from_options( connection_type="glue.spark.woocommerce", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "coupon", "API_VERSION": "v3", "INSTANCE_URL": "instanceUrl" }
WooCommerce Entitäts- und Felddetails:
| Entität | Feld | Datentyp | Unterstützte Operatoren |
|---|---|---|---|
| coupon | id | Ganzzahl | – |
| Code | Zeichenfolge | EQUAL_TO | |
| Betrag | Zeichenfolge | – | |
| Status | Zeichenfolge | – | |
| date_created | DateTime | – | |
| date_created_gmt | DateTime | – | |
| date_modified | DateTime | – | |
| date_modified_gmt | DateTime | – | |
| discount_type | Zeichenfolge | – | |
| description | Zeichenfolge | – | |
| date_expires | Zeichenfolge | – | |
| date_expires_gmt | Zeichenfolge | – | |
| usage_count | Ganzzahl | – | |
| individual_use | Boolesch | – | |
| product_ids | Auflisten | – | |
| excluded_product_ids | Auflisten | – | |
| usage_limit | Ganzzahl | – | |
| usage_limit_per_user | Ganzzahl | – | |
| limit_usage_to_x_items | Ganzzahl | – | |
| free_shipping | Boolesch | – | |
| product_categories | Auflisten | – | |
| excluded_product_categories | Auflisten | – | |
| exclude_sale_items | Boolesch | – | |
| minimum_amount | Zeichenfolge | – | |
| maximum_amount | Zeichenfolge | – | |
| email_restrictions | Auflisten | – | |
| used_by | Auflisten | – | |
| meta_data | Auflisten | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| after | DateTime | EQUAL_TO | |
| before | DateTime | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| modified_after | DateTime | EQUAL_TO | |
| modified_before | DateTime | EQUAL_TO | |
| dates_are_gmt | Boolesch | EQUAL_TO | |
| coupon-total | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| total | Ganzzahl | – | |
| customer-total | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| total | Ganzzahl | – | |
| order | id | Ganzzahl | – |
| parent_id | Ganzzahl | – | |
| number | Zeichenfolge | – | |
| order_key | Zeichenfolge | – | |
| created_via | Zeichenfolge | – | |
| Status | Zeichenfolge | – | |
| currency | Zeichenfolge | – | |
| version | Zeichenfolge | – | |
| date_created | DateTime | – | |
| date_modified | DateTime | – | |
| discount_total | Zeichenfolge | – | |
| discount_tax | Zeichenfolge | – | |
| shipping_total | Zeichenfolge | – | |
| shipping_tax | Zeichenfolge | – | |
| cart_tax | Zeichenfolge | – | |
| total | Zeichenfolge | – | |
| total_tax | Zeichenfolge | – | |
| prices_include_tax | Boolesch | – | |
| customer_id | Ganzzahl | – | |
| customer_ip_address | Zeichenfolge | – | |
| customer_user_agent | Zeichenfolge | – | |
| customer_note | Zeichenfolge | – | |
| Fakturierung | Struct | – | |
| shipping | Struct | – | |
| payment_method | Zeichenfolge | – | |
| payment_method_title | Zeichenfolge | – | |
| transaction_id | Zeichenfolge | – | |
| date_paid | DateTime | – | |
| date_completed | DateTime | – | |
| cart_hash | Zeichenfolge | – | |
| meta_data | Auflisten | – | |
| line_items | Auflisten | – | |
| tax_lines | Auflisten | – | |
| shipping_lines | Auflisten | – | |
| fee_lines | Auflisten | – | |
| coupon_lines | Auflisten | – | |
| refunds | Auflisten | – | |
| payment_url | Zeichenfolge | – | |
| is_editable | Boolesch | – | |
| needs_payment | Boolesch | – | |
| needs_processing | Boolesch | – | |
| date_created_gmt | DateTime | – | |
| date_modified_gmt | DateTime | – | |
| date_completed_gmt | DateTime | – | |
| date_paid_gmt | DateTime | – | |
| currency_symbol | Zeichenfolge | – | |
| set_paid | Boolesch | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| after | DateTime | EQUAL_TO | |
| before | DateTime | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| customer | Ganzzahl | EQUAL_TO | |
| product | Ganzzahl | EQUAL_TO | |
| dp | Ganzzahl | EQUAL_TO | |
| modified_before | DateTime | EQUAL_TO | |
| modified_after | DateTime | EQUAL_TO | |
| dates_are_gmt | Boolesch | EQUAL_TO | |
| order-total | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| total | Ganzzahl | – | |
| payment-gateway | Titel | Zeichenfolge | – |
| description | Zeichenfolge | – | |
| order | Zeichenfolge | – | |
| aktiviert | Boolesch | – | |
| method_title | Zeichenfolge | – | |
| method_description | Zeichenfolge | – | |
| method_supports | Auflisten | – | |
| Einstellungen | Zeichenfolge | – | |
| needs_setup | Boolesch | – | |
| post_install_scripts | Auflisten | – | |
| settings_url | Zeichenfolge | – | |
| connection_url | Zeichenfolge | – | |
| setup_help_text | Zeichenfolge | – | |
| required_settings_keys | Auflisten | – | |
| product | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| type | Zeichenfolge | EQUAL_TO | |
| permalink | Zeichenfolge | – | |
| date_created | DateTime | – | |
| date_created_gmt | DateTime | – | |
| date_modified | DateTime | – | |
| date_modified_gmt | DateTime | – | |
| catalog_visibility | Zeichenfolge | – | |
| description | Zeichenfolge | – | |
| short_description | Zeichenfolge | – | |
| price | Zeichenfolge | – | |
| regular_price | Zeichenfolge | – | |
| sale_price | Zeichenfolge | – | |
| date_on_sale_from | DateTime | – | |
| date_on_sale_from_gmt | DateTime | – | |
| date_on_sale_to | DateTime | – | |
| date_on_sale_to_gmt | DateTime | – | |
| price_html | Zeichenfolge | – | |
| purchasable | Boolesch | – | |
| total_sales | Ganzzahl | – | |
| virtual | Boolesch | – | |
| downloadable | Boolesch | – | |
| Downloads | Auflisten | – | |
| download_limit | Ganzzahl | – | |
| download_expiry | Ganzzahl | – | |
| external_url | Zeichenfolge | – | |
| button_text | Zeichenfolge | – | |
| tax_status | Zeichenfolge | – | |
| manage_stock | Boolesch | – | |
| stock_quantity | Ganzzahl | – | |
| backorders | Zeichenfolge | – | |
| backorders_allowed | Boolesch | – | |
| backordered | Boolesch | – | |
| sold_individually | Boolesch | – | |
| weight | Zeichenfolge | – | |
| dimensions | Struct | – | |
| shipping_required | Boolesch | – | |
| shipping_taxable | Boolesch | – | |
| shipping_class_id | Ganzzahl | – | |
| reviews_allowed | Boolesch | – | |
| average_rating | Zeichenfolge | – | |
| rating_count | Ganzzahl | – | |
| related_ids | Auflisten | – | |
| upsell_ids | Auflisten | – | |
| cross_sell_ids | Auflisten | – | |
| parent_id | Ganzzahl | – | |
| purchase_note | Zeichenfolge | – | |
| categories | Auflisten | – | |
| tags | Auflisten | – | |
| images | Auflisten | – | |
| Attribute | Auflisten | – | |
| default_attributes | Auflisten | – | |
| variations | Auflisten | – | |
| grouped_products | Auflisten | – | |
| menu_order | Ganzzahl | – | |
| meta_data | Auflisten | – | |
| low_stock_amount | Ganzzahl | – | |
| jetpack_publicize_connections | Auflisten | – | |
| jetpack-related-posts | Auflisten | – | |
| jetpack_likes_enabled | Boolesch | – | |
| jetpack_sharing_enabled | Boolesch | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| after | DateTime | EQUAL_TO | |
| before | DateTime | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| slug | Zeichenfolge | EQUAL_TO | |
| Status | Zeichenfolge | EQUAL_TO | |
| sku | Zeichenfolge | EQUAL_TO | |
| featured | Boolesch | EQUAL_TO | |
| Tag (Markierung) | Zeichenfolge | EQUAL_TO | |
| shipping_class | Zeichenfolge | EQUAL_TO | |
| tax_class | Zeichenfolge | EQUAL_TO | |
| on_sale | Boolesch | EQUAL_TO | |
| stock_status | Zeichenfolge | EQUAL_TO | |
| has_options | Boolesch | – | |
| modified_after | DateTime | EQUAL_TO | |
| modified_before | DateTime | EQUAL_TO | |
| dates_are_gmt | Boolesch | EQUAL_TO | |
| category | Zeichenfolge | EQUAL_TO | |
| Attribut | Zeichenfolge | EQUAL_TO | |
| min_price | Zeichenfolge | EQUAL_TO | |
| max_price | Zeichenfolge | EQUAL_TO | |
| product-attribute | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| slug | Zeichenfolge | – | |
| type | Zeichenfolge | – | |
| order_by | Zeichenfolge | – | |
| has_archives | Boolesch | – | |
| context | Zeichenfolge | EQUAL_TO | |
| product-attribute-term | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| slug | Zeichenfolge | – | |
| description | Zeichenfolge | – | |
| menu_order | Ganzzahl | – | |
| count | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| hide_empty | Boolesch | EQUAL_TO | |
| übergeordneter | Ganzzahl | EQUAL_TO | |
| product | Ganzzahl | EQUAL_TO | |
| product-category | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| slug | Zeichenfolge | EQUAL_TO | |
| description | Zeichenfolge | – | |
| display | Zeichenfolge | – | |
| Abbild | Struct | – | |
| menu_order | Ganzzahl | – | |
| count | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| hide_empty | Boolesch | EQUAL_TO | |
| übergeordneter | Ganzzahl | EQUAL_TO | |
| product | Ganzzahl | EQUAL_TO | |
| product-review | id | Ganzzahl | – |
| date_created | DateTime | – | |
| date_created_gmt | DateTime | – | |
| product_id | Ganzzahl | – | |
| product_name | Zeichenfolge | – | |
| product_permalink | Zeichenfolge | – | |
| review | Zeichenfolge | – | |
| rating | Ganzzahl | – | |
| verified | Boolesch | – | |
| reviewer | Zeichenfolge | – | |
| reviewer_email | Zeichenfolge | – | |
| reviewer_avatar_urls | Struct | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| after | DateTime | EQUAL_TO | |
| before | DateTime | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| Status | Zeichenfolge | EQUAL_TO | |
| product-shipping-class | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| slug | Zeichenfolge | EQUAL_TO | |
| description | Zeichenfolge | – | |
| count | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| hide_empty | Zeichenfolge | EQUAL_TO | |
| product | Ganzzahl | EQUAL_TO | |
| product-tag | id | Ganzzahl | – |
| Name | Zeichenfolge | – | |
| slug | Zeichenfolge | EQUAL_TO | |
| description | Zeichenfolge | – | |
| count | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| hide_empty | Boolesch | EQUAL_TO | |
| product | Ganzzahl | EQUAL_TO | |
| product-total | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| total | Ganzzahl | – | |
| product-variation | id | Ganzzahl | – |
| date_created | DateTime | – | |
| date_created_gmt | DateTime | – | |
| date_modified | DateTime | – | |
| date_modified_gmt | DateTime | – | |
| description | Zeichenfolge | – | |
| permalink | Zeichenfolge | – | |
| price | Zeichenfolge | – | |
| regular_price | Zeichenfolge | – | |
| sale_price | Zeichenfolge | – | |
| date_on_sale_from | DateTime | – | |
| date_on_sale_from_gmt | DateTime | – | |
| date_on_sale_to | DateTime | – | |
| date_on_sale_to_gmt | DateTime | – | |
| purchasable | Boolesch | – | |
| virtual | Boolesch | – | |
| downloadable | Boolesch | – | |
| Downloads | Auflisten | – | |
| download_limit | Ganzzahl | – | |
| download_expiry | Ganzzahl | – | |
| tax_status | Zeichenfolge | – | |
| manage_stock | Boolesch | – | |
| stock_quantity | Ganzzahl | – | |
| backorders | Zeichenfolge | – | |
| backorders_allowed | Boolesch | – | |
| backordered | Boolesch | – | |
| low_stock_amount | Ganzzahl | – | |
| weight | Zeichenfolge | – | |
| dimensions | Struct | – | |
| shipping_class | Zeichenfolge | – | |
| shipping_class_id | Ganzzahl | – | |
| Abbild | Struct | – | |
| Attribute | Auflisten | – | |
| menu_order | Ganzzahl | – | |
| meta_data | Auflisten | – | |
| context | Zeichenfolge | EQUAL_TO | |
| search | Zeichenfolge | EQUAL_TO | |
| after | DateTime | EQUAL_TO | |
| before | DateTime | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| slug | Zeichenfolge | EQUAL_TO | |
| Status | Zeichenfolge | EQUAL_TO | |
| sku | Zeichenfolge | EQUAL_TO | |
| tax_class | Zeichenfolge | EQUAL_TO | |
| on_sale | Boolesch | EQUAL_TO | |
| min_price | Zeichenfolge | EQUAL_TO | |
| max_price | Zeichenfolge | EQUAL_TO | |
| stock_status | Zeichenfolge | EQUAL_TO | |
| report | slug | Zeichenfolge | – |
| description | Zeichenfolge | – | |
| review-total | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| total | Ganzzahl | – | |
| sales-report | total_sales | Zeichenfolge | – |
| net_sales | Zeichenfolge | – | |
| average_sales | Zeichenfolge | – | |
| total_orders | Ganzzahl | – | |
| total_items | Ganzzahl | – | |
| total_tax | Zeichenfolge | – | |
| total_shipping | Zeichenfolge | – | |
| total_refunds | Ganzzahl | – | |
| total_discount | Zeichenfolge | – | |
| totals_grouped_by | Zeichenfolge | – | |
| totals | Struct | – | |
| total_customers | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| Zeitraum | Zeichenfolge | EQUAL_TO | |
| date_min | Date | EQUAL_TO | |
| date_max | Date | EQUAL_TO | |
| shipping-method | id | Zeichenfolge | – |
| Titel | Zeichenfolge | – | |
| description | Zeichenfolge | – | |
| shipping-zone | id | Ganzzahl | EQUAL_TO |
| Name | Zeichenfolge | – | |
| order | Ganzzahl | – | |
| shipping-zone-location | Code | Zeichenfolge | – |
| type | Zeichenfolge | – | |
| shipping-zone-method | instance_id | Ganzzahl | – |
| id | Ganzzahl | EQUAL_TO | |
| Titel | Zeichenfolge | – | |
| order | Ganzzahl | – | |
| aktiviert | Boolesch | – | |
| method_id | Zeichenfolge | – | |
| method_title | Zeichenfolge | – | |
| method_description | Zeichenfolge | – | |
| Einstellungen | Struct | – | |
| tax-class | slug | Zeichenfolge | – |
| Name | Zeichenfolge | – | |
| tax-rate | id | Ganzzahl | – |
| country | Zeichenfolge | – | |
| state | Zeichenfolge | – | |
| postcode | Zeichenfolge | – | |
| city | Zeichenfolge | – | |
| postcodes | Auflisten | – | |
| cities | Auflisten | – | |
| rate | Zeichenfolge | – | |
| Name | Zeichenfolge | – | |
| priority | Ganzzahl | – | |
| compound | Boolesch | – | |
| shipping | Boolesch | – | |
| context | Zeichenfolge | EQUAL_TO | |
| order | Zeichenfolge | EQUAL_TO | |
| orderby | Zeichenfolge | EQUAL_TO | |
| class | Zeichenfolge | EQUAL_TO | |
| top-seller-report | Name | Zeichenfolge | – |
| product_id | Ganzzahl | – | |
| quantity | Ganzzahl | – | |
| context | Zeichenfolge | EQUAL_TO | |
| Zeitraum | Zeichenfolge | EQUAL_TO | |
| date_min | Date | EQUAL_TO | |
| date_max | Date | EQUAL_TO |
Anmerkung
Die Datentypen Struct und List werden in den Datentyp String konvertiert, und der DateTime Datentyp wird in der Antwort der Konnektoren in Timestamp konvertiert.
Partitionierung von Abfragen
Datensatzbasierte Partitionierung:
Sie können die zusätzliche Spark-Option NUM_PARTITIONS angeben, wenn Sie Parallelität in Spark nutzen möchten. Mit diesen Parametern wird die ursprüngliche Abfrage in NUM_PARTITIONS Unterabfragen aufgeteilt, die von Spark-Aufgaben gleichzeitig ausgeführt werden können.
Bei der datensatzbasierten Partitionierung wird die Gesamtzahl der vorhandenen Datensätze von der WooCommerce API abgefragt und durch eine angegebene Zahl dividiert. NUM_PARTITIONS Die resultierende Anzahl von Datensätzen wird dann gleichzeitig von jeder Unterabfrage abgerufen.
NUM_PARTITIONS: Die Anzahl an Partitionen.
Die folgenden Entitäten unterstützen die datensatzbasierte Partitionierung:
coupon
order
product
product-attribute
product-attribute-term
product-category
product-review
product-shipping-class
product-tag
product-variation
tax-rate
Beispiel:
woocommerce_read = glueContext.create_dynamic_frame.from_options( connection_type="glue.spark.woocommerce", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "coupon", "API_VERSION": "v3", "INSTANCE_URL": "instanceUrl" "NUM_PARTITIONS": "10" }
Datensatzbasierte Partitionierung:
Die ursprüngliche Abfrage ist in NUM_PARTITIONS Unterabfragen aufgeteilt, die von Spark-Aufgaben gleichzeitig ausgeführt werden können.
NUM_PARTITIONS: Die Anzahl an Partitionen.
Beispiel:
WooCommerce_read = glueContext.create_dynamic_frame.from_options( connection_type="WooCommerce", connection_options={ "connectionName": "connectionName", "REALMID": "1234567890123456789", "ENTITY_NAME": "Bill", "API_VERSION": "v3", "NUM_PARTITIONS": "10" }