public class ConfigurationWriter extends ConfigurationReader
ConfigurationReaderwith the ability to write the configuration to HBase. This class should only be used from the client side, and never within a coprocessor (coprocessors should only read, bit never write the configuration table). This class does not depend on any HBase Server classes and is safe to be used with only HBase Client libraries in the class path.
|Constructor and Description|
Constructor from an HBase configuration and a CConfiguration.
|Modifier and Type||Method and Description|
public ConfigurationWriter(org.apache.hadoop.conf.Configuration hConf, CConfiguration cConf)
public void write(ConfigurationReader.Type type, CConfiguration configurationToWrite) throws IOException
CConfigurationinstance as a new row to the HBase table. The
Typegiven is used as the row key (allowing multiple configurations to be stored). After the new configuration is written, this will delete any configurations written with an earlier timestamp (to prevent removed values from being visible).
configurationToWrite- the CConfiguration to be persisted
IOException- If an error occurs while writing the configuration
Copyright © 2018 Cask Data, Inc.. All rights reserved.