You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`RatePerMicroBatchProvider` is a `SimpleTableProvider` ([Spark SQL]({{ book.spark_sql }}/connector/SimpleTableProvider)).
3
+
`RatePerMicroBatchProvider` is a `SimpleTableProvider` ([Spark SQL]({{ book.spark_sql }}/connector/SimpleTableProvider)) registered under [rate-micro-batch](#shortName) alias.
Copy file name to clipboardExpand all lines: docs/datasources/rate-micro-batch/RatePerMicroBatchTable.md
+29-15Lines changed: 29 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,42 @@
15
15
16
16
*`RatePerMicroBatchProvider` is requested for the [table](RatePerMicroBatchProvider.md#getTable)
17
17
18
-
## <spanid="schema"> schema
18
+
## Table Capabilities { #capabilities }
19
19
20
-
```scala
21
-
schema():StructType
22
-
```
20
+
??? note "Table"
21
+
22
+
```scala
23
+
capabilities(): Set[TableCapability]
24
+
```
25
+
26
+
`capabilities` is part of the `Table` ([Spark SQL]({{ book.spark_sql }}/connector/Table#capabilities)) abstraction.
27
+
28
+
`capabilities` is exactly `MICRO_BATCH_READ` table capability.
29
+
30
+
## Schema { #schema }
31
+
32
+
??? note "Table"
33
+
34
+
```scala
35
+
schema(): StructType
36
+
```
37
+
38
+
`schema` is part of the `Table` ([Spark SQL]({{ book.spark_sql }}/connector/Table#schema)) abstraction.
23
39
24
40
Name | Data Type
25
41
-----|----------
26
-
timestamp | TimestampType
27
-
value | LongType
28
-
29
-
`schema` is part of the `Table` ([Spark SQL]({{ book.spark_sql }}/connector/Table#schema)) abstraction.
42
+
`timestamp` | `TimestampType`
43
+
`value` | `LongType`
30
44
31
-
## <spanid="newScanBuilder"> Creating ScanBuilder
45
+
## Create ScanBuilder { #newScanBuilder }
32
46
33
-
```scala
34
-
newScanBuilder(
35
-
options: CaseInsensitiveStringMap):ScanBuilder
36
-
```
47
+
??? note "SupportsRead"
37
48
38
-
`newScanBuilder` is part of the `SupportsRead` ([Spark SQL]({{ book.spark_sql }}/connector/SupportsRead#newScanBuilder)) abstraction.
49
+
```scala
50
+
newScanBuilder(
51
+
options: CaseInsensitiveStringMap): ScanBuilder
52
+
```
39
53
40
-
---
54
+
`newScanBuilder` is part of the `SupportsRead` ([Spark SQL]({{ book.spark_sql }}/connector/SupportsRead#newScanBuilder)) abstraction.
41
55
42
56
`newScanBuilder` creates a new `Scan` ([Spark SQL]({{ book.spark_sql }}/connector/Scan)) that creates a [RatePerMicroBatchStream](RatePerMicroBatchStream.md) when requested for a `MicroBatchStream` ([Spark SQL]({{ book.spark_sql }}/connector/Scan#toMicroBatchStream)).
0 commit comments