

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
<a name="woocommerce-reading-from-entities"></a>

**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 „\$1 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**:

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/de_de/glue/latest/dg/woocommerce-reading-from-entities.html)

**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
<a name="woocommerce-reading-partitioning-queries"></a>

**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"
    }
```