Package org.apache.accumulo.server.fs
Class VolumeChooserEnvironmentImpl
java.lang.Object
org.apache.accumulo.server.fs.VolumeChooserEnvironmentImpl
- All Implemented Interfaces:
VolumeChooserEnvironment
,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 interface
VolumeChooserEnvironment
should result in more stable code over time than using this
class.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.fs.VolumeChooserEnvironment
VolumeChooserEnvironment.Scope
Nested classes/interfaces inherited from interface org.apache.accumulo.server.fs.VolumeChooserEnvironment
VolumeChooserEnvironment.ChooserScope
-
Constructor Summary
ConstructorsConstructorDescriptionVolumeChooserEnvironmentImpl
(TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context) VolumeChooserEnvironmentImpl
(VolumeChooserEnvironment.Scope scope, TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context) VolumeChooserEnvironmentImpl
(VolumeChooserEnvironment.Scope scope, ServerContext context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.apache.hadoop.io.Text
The end row of the tablet for which a volume is being chosen.org.apache.hadoop.fs.FileSystem
getFileSystem
(String option) getTable()
int
hashCode()
boolean
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.accumulo.server.fs.VolumeChooserEnvironment
getScope
-
Constructor Details
-
VolumeChooserEnvironmentImpl
-
VolumeChooserEnvironmentImpl
public VolumeChooserEnvironmentImpl(TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context) -
VolumeChooserEnvironmentImpl
public VolumeChooserEnvironmentImpl(VolumeChooserEnvironment.Scope scope, TableId tableId, org.apache.hadoop.io.Text endRow, ServerContext context)
-
-
Method Details
-
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:
getEndRow
in interfaceVolumeChooserEnvironment
- Specified by:
getEndRow
in interfaceVolumeChooserEnvironment
- Since:
- 2.0.0
-
getTable
- Specified by:
getTable
in interfaceVolumeChooserEnvironment
-
hasTableId
public boolean hasTableId()- Specified by:
hasTableId
in interfaceVolumeChooserEnvironment
-
getTableId
- Specified by:
getTableId
in interfaceVolumeChooserEnvironment
-
getChooserScope
- Specified by:
getChooserScope
in interfaceVolumeChooserEnvironment
-
getServiceEnv
- Specified by:
getServiceEnv
in interfaceVolumeChooserEnvironment
- Specified by:
getServiceEnv
in interfaceVolumeChooserEnvironment
-
getFileSystem
- Specified by:
getFileSystem
in interfaceVolumeChooserEnvironment
-
equals
-
hashCode
public int hashCode()
-