@Deprecated 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
getBucketPath(Clock clock,
org.apache.hadoop.fs.Path basePath,
T element)
Deprecated.
Returns the
Path of a bucket file. |
String |
toString()
Deprecated.
|
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>
clock
- The current system time in milliseconds.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–2021 The Apache Software Foundation. All rights reserved.