public class PreferredVolumeChooser extends RandomVolumeChooser implements VolumeChooser
RandomVolumeChooser that limits its choices from a given set of options to the subset of those options preferred for a particular table. Defaults
to selecting from all of the options presented. Can be customized via the table property "table.custom.preferredVolumes", which should contain a comma
separated list of Volume URIs. Note that both the property name and the format of its value are specific to this particular implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
PREFERRED_VOLUMES_CUSTOM_KEY
This should match
Property.TABLE_ARBITRARY_PROP_PREFIX |
| Constructor and Description |
|---|
PreferredVolumeChooser() |
public static final String PREFERRED_VOLUMES_CUSTOM_KEY
Property.TABLE_ARBITRARY_PROP_PREFIXpublic String choose(VolumeChooserEnvironment env, String[] options)
choose in interface VolumeChooserchoose in class RandomVolumeChooserCopyright © 2015 Apache Accumulo Project. All rights reserved.