Package org.apache.accumulo.server.fs
Class VolumeChooserEnvironmentImpl
- java.lang.Object
-
- org.apache.accumulo.server.fs.VolumeChooserEnvironmentImpl
-
- All Implemented Interfaces:
VolumeChooserEnvironment
public class VolumeChooserEnvironmentImpl extends Object implements VolumeChooserEnvironment
Volume chooser authors should avoid using this class when testing their volume chooser. The constructors for this class may change at any time. For testing purposes mocking the interfaceVolumeChooserEnvironmentshould result in more stable code over time than using this class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.server.fs.VolumeChooserEnvironment
VolumeChooserEnvironment.ChooserScope
-
-
Constructor Summary
Constructors Constructor Description VolumeChooserEnvironmentImpl(TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context)VolumeChooserEnvironmentImpl(VolumeChooserEnvironment.ChooserScope scope, ServerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.apache.hadoop.io.TextgetEndRow()The end row of the tablet for which a volume is being chosen.org.apache.hadoop.fs.FileSystemgetFileSystem(String option)VolumeChooserEnvironment.ChooserScopegetScope()ServiceEnvironmentgetServiceEnv()TableIdgetTableId()inthashCode()booleanhasTableId()
-
-
-
Constructor Detail
-
VolumeChooserEnvironmentImpl
public VolumeChooserEnvironmentImpl(VolumeChooserEnvironment.ChooserScope scope, ServerContext context)
-
VolumeChooserEnvironmentImpl
public VolumeChooserEnvironmentImpl(TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context)
-
-
Method Detail
-
getEndRow
public org.apache.hadoop.io.Text getEndRow()
The end row of the tablet for which a volume is being chosen. Only call this when the scope is TABLE- Specified by:
getEndRowin interfaceVolumeChooserEnvironment- Since:
- 2.0.0
-
hasTableId
public boolean hasTableId()
- Specified by:
hasTableIdin interfaceVolumeChooserEnvironment
-
getTableId
public TableId getTableId()
- Specified by:
getTableIdin interfaceVolumeChooserEnvironment
-
getScope
public VolumeChooserEnvironment.ChooserScope getScope()
- Specified by:
getScopein interfaceVolumeChooserEnvironment- Since:
- 2.0.0
-
getServiceEnv
public ServiceEnvironment getServiceEnv()
- Specified by:
getServiceEnvin interfaceVolumeChooserEnvironment
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem(String option)
- Specified by:
getFileSystemin interfaceVolumeChooserEnvironment
-
-