Class KuduIO.Read<T>
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
KuduIO
KuduIO.read()
.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransform
should be expanded on the givenInputT
.void
populateDisplayData
(DisplayData.Builder builder) Register display data for the given transform or component.void
validate
(PipelineOptions pipelineOptions) Called before running the Pipeline to verify this transform is fully and correctly specified.withBatchSize
(int batchSize) Reads from the table in batches of the specified size.Sets aCoder
for the result of the parse function.withFaultTolerent
(boolean faultTolerent) Instructs the read scan to resume a scan on another tablet server if the current server fails and faultTolerant is set to true.withMasterAddresses
(String masterAddresses) Reads from the Kudu cluster on the specified master addresses.withParseFn
(SerializableFunction<org.apache.kudu.client.RowResult, T> parseFn) Provides the function to parse a row from Kudu into the typed object.withPredicates
(List<org.apache.kudu.client.KuduPredicate> predicates) Filters the rows read from Kudu using the given predicates.withProjectedColumns
(List<String> projectedColumns) Filters the columns read from the table to include only those specified.Reads from the specified table.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, toString, validate
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
withMasterAddresses
Reads from the Kudu cluster on the specified master addresses. -
withTable
Reads from the specified table. -
withParseFn
Provides the function to parse a row from Kudu into the typed object. -
withPredicates
Filters the rows read from Kudu using the given predicates. -
withProjectedColumns
Filters the columns read from the table to include only those specified. -
withBatchSize
Reads from the table in batches of the specified size. -
withFaultTolerent
Instructs the read scan to resume a scan on another tablet server if the current server fails and faultTolerant is set to true. -
withCoder
Sets aCoder
for the result of the parse function. This may be required if a coder can not be inferred automatically. -
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PBegin,
PCollection<T>>
-
validate
Description copied from class:PTransform
Called before running the Pipeline to verify this transform is fully and correctly specified.By default, does nothing.
- Overrides:
validate
in classPTransform<PBegin,
PCollection<T>>
-
populateDisplayData
Description copied from class:PTransform
Register display data for the given transform or component.populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData)
. Implementations may callsuper.populateDisplayData(builder)
in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)
to use the namespace of the subcomponent.By default, does not register any display data. Implementors may override this method to provide their own display data.
- Specified by:
populateDisplayData
in interfaceHasDisplayData
- Overrides:
populateDisplayData
in classPTransform<PBegin,
PCollection<T>> - Parameters:
builder
- The builder to populate with display data.- See Also:
-