Package org.apache.accumulo.core.file
Class FileOperations.FileAccessOperation<SubclassType extends FileOperations.FileAccessOperation<SubclassType>>
- java.lang.Object
-
- org.apache.accumulo.core.file.FileOperations.FileAccessOperation<SubclassType>
-
- Direct Known Subclasses:
FileOperations.FileIOOperation
,FileOperations.GetFileSizeOperation
- Enclosing class:
- FileOperations
protected static class FileOperations.FileAccessOperation<SubclassType extends FileOperations.FileAccessOperation<SubclassType>> extends Object
Options common to all FileOperations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileAccessOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubclassType
forFile(String filename)
Specify the file this operation should apply to.SubclassType
forFile(String filename, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration fsConf)
Specify the file this operation should apply to.org.apache.hadoop.conf.Configuration
getConfiguration()
String
getFilename()
org.apache.hadoop.fs.FileSystem
getFileSystem()
AccumuloConfiguration
getTableConfiguration()
SubclassType
inFileSystem(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration fsConf)
Specify the filesystem which this operation should apply to, along with its configuration.protected void
setConfiguration(org.apache.hadoop.conf.Configuration fsConf)
protected void
setFilename(String filename)
protected void
validate()
Check for null parameters.SubclassType
withTableConfiguration(AccumuloConfiguration tableConfiguration)
Specify the table configuration defining access to this file.
-
-
-
Method Detail
-
withTableConfiguration
public SubclassType withTableConfiguration(AccumuloConfiguration tableConfiguration)
Specify the table configuration defining access to this file.
-
forFile
public SubclassType forFile(String filename, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration fsConf)
Specify the file this operation should apply to.
-
forFile
public SubclassType forFile(String filename)
Specify the file this operation should apply to.
-
inFileSystem
public SubclassType inFileSystem(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration fsConf)
Specify the filesystem which this operation should apply to, along with its configuration.
-
setFilename
protected void setFilename(String filename)
-
getFilename
public String getFilename()
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem()
-
setConfiguration
protected void setConfiguration(org.apache.hadoop.conf.Configuration fsConf)
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
getTableConfiguration
public AccumuloConfiguration getTableConfiguration()
-
validate
protected void validate()
Check for null parameters.
-
-