public class BasePathBucketer<T> extends Object implements Bucketer<T>
Bucketer
that does not perform any
bucketing of files. All files are written to the base path.Constructor and Description |
---|
BasePathBucketer() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
getBucketPath(Clock clock,
org.apache.hadoop.fs.Path basePath,
T element)
Returns the
Path of a bucket file. |
String |
toString() |
public org.apache.hadoop.fs.Path getBucketPath(Clock clock, org.apache.hadoop.fs.Path basePath, T element)
Bucketer
Path
of a bucket file.getBucketPath
in interface Bucketer<T>
basePath
- The base path containing all the buckets.element
- The current element being processed.Path
of the bucket which the provided element should fall in. This
should include the basePath
and also the subtaskIndex
to avoid clashes with
parallel sinks.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.