public static class StagingDirectoryProvider.TrivialImpl extends Object implements StagingDirectoryProvider
StagingDirectoryProvider.TrivialImpl
Constructor and Description |
---|
TrivialImpl(String base,
String separator)
Trivial implementation of StagingDirectoryProvider which takes a temporary directory
and creates directories inside that for each key.
|
Modifier and Type | Method and Description |
---|---|
String |
getStagingDirectory(String key)
Return a temporary staging directory for a given key
|
public TrivialImpl(String base, String separator)
base
- temp directory inside which other tmp dirs are createdseparator
- path separator. Usually should be "/"public String getStagingDirectory(String key)
StagingDirectoryProvider
getStagingDirectory
in interface StagingDirectoryProvider
key
- key for the directory, usually a name of a partition
Note that when overriding this method, no guarantees are made about the
contents of the key, other than that is unique per partition.Copyright © 2016 The Apache Software Foundation. All rights reserved.