/** * Configures a {@link org.apache.accumulo.core.client.ZooKeeperInstance} for this job. * * @param job * the Hadoop job instance to be configured * @param clientConfig * client configuration containing connection options * @since 1.6.0 */ public static void setZooKeeperInstance(JobConf job, ClientConfiguration clientConfig) { InputConfigurator.setZooKeeperInstance(CLASS, job, clientConfig); }
/** * Sets the name of the classloader context on this scanner * * @param job * the Hadoop job instance to be configured * @param context * name of the classloader context * @since 1.8.0 */ public static void setClassLoaderContext(JobConf job, String context) { InputConfigurator.setClassLoaderContext(CLASS, job, context); }
/** * Returns the name of the current classloader context set on this scanner * * @param job * the Hadoop job instance to be configured * @return name of the current context * @since 1.8.0 */ public static String getClassLoaderContext(JobConf job) { return InputConfigurator.getClassLoaderContext(CLASS, job); }
/** * Encode an iterator on the input for this job. * * @param job * the Hadoop job instance to be configured * @param cfg * the configuration of the iterator * @since 1.5.0 */ public static void addIterator(JobConf job, IteratorSetting cfg) { InputConfigurator.addIterator(CLASS, job, cfg); }
/** * Gets the columns to be mapped over from this job. * * @param job * the Hadoop context for the configured job * @return a set of columns * @since 1.5.0 * @see #fetchColumns(JobConf, Collection) */ protected static Set<Pair<Text,Text>> getFetchedColumns(JobConf job) { return InputConfigurator.getFetchedColumns(CLASS, job); }
/** * Initializes an Accumulo {@link Instance} based on the configuration. * * @param job * the Hadoop context for the configured job * @return an Accumulo instance * @since 1.5.0 * @see #setZooKeeperInstance(JobConf, ClientConfiguration) */ protected static Instance getInstance(JobConf job) { return OutputConfigurator.getInstance(CLASS, job); }
/** * Determines whether a configuration has the {@link org.apache.accumulo.core.client.BatchScanner} * feature enabled. * * @param job * the Hadoop context for the configured job * @since 1.7.0 * @see #setBatchScan(JobConf, boolean) */ public static boolean isBatchScan(JobConf job) { return InputConfigurator.isBatchScan(CLASS, job); }
/** * Determines if the connector has been configured. * * @param job * the Hadoop context for the configured job * @return true if the connector has been configured, false otherwise * @since 1.5.0 * @see #setConnectorInfo(JobConf, String, AuthenticationToken) */ protected static Boolean isConnectorInfoSet(JobConf job) { return InputConfigurator.isConnectorInfoSet(CLASS, job); }
/** * Gets the authorizations to set for the scans from the configuration. * * @param job * the Hadoop context for the configured job * @return the Accumulo scan authorizations * @since 1.5.0 * @see #setScanAuthorizations(JobConf, Authorizations) */ protected static Authorizations getScanAuthorizations(JobConf job) { return InputConfigurator.getScanAuthorizations(CLASS, job); }
/** * Gets the principal from the configuration. * * @param job * the Hadoop context for the configured job * @return the user name * @since 1.5.0 * @see #setConnectorInfo(JobConf, String, AuthenticationToken) */ protected static String getPrincipal(JobConf job) { return OutputConfigurator.getPrincipal(CLASS, job); }
/** * Gets the default table name from the configuration. * * @param job * the Hadoop context for the configured job * @return the default table name * @since 1.5.0 * @see #setDefaultTableName(JobConf, String) */ protected static String getDefaultTableName(JobConf job) { return OutputConfigurator.getDefaultTableName(CLASS, job); }
/** * Gets the {@link BatchWriterConfig} settings. * * @param job * the Hadoop context for the configured job * @return the configuration object * @since 1.5.0 * @see #setBatchWriterOptions(JobConf, BatchWriterConfig) */ protected static BatchWriterConfig getBatchWriterOptions(JobConf job) { return OutputConfigurator.getBatchWriterOptions(CLASS, job); }
/** * Determines whether this feature is enabled. * * @param job * the Hadoop context for the configured job * @return true if the feature is enabled, false otherwise * @since 1.5.0 * @see #setSimulationMode(JobConf, boolean) */ protected static Boolean getSimulationMode(JobConf job) { return OutputConfigurator.getSimulationMode(CLASS, job); }
/** * Determines whether a configuration has the offline table scan feature enabled. * * @param job * the Hadoop context for the configured job * @return true if the feature is enabled, false otherwise * @since 1.5.0 * @see #setOfflineTableScan(JobConf, boolean) */ protected static boolean isOfflineScan(JobConf job) { return InputConfigurator.isOfflineScan(CLASS, job); }
/** * Sets the {@link InputTableConfig} objects on the given Hadoop configuration * * @param job * the Hadoop job instance to be configured * @param configs * the table query configs to be set on the configuration. * @since 1.6.0 */ public static void setInputTableConfigs(JobConf job, Map<String,InputTableConfig> configs) { InputConfigurator.setInputTableConfigs(CLASS, job, configs); }
/** * Gets the user name from the configuration. * * @param job * the Hadoop context for the configured job * @return the user name * @since 1.5.0 * @see #setConnectorInfo(JobConf, String, AuthenticationToken) */ protected static String getPrincipal(JobConf job) { return InputConfigurator.getPrincipal(CLASS, job); }
/** * Sets the log level for this job. * * @param job * the Hadoop job instance to be configured * @param level * the logging level * @since 1.5.0 */ public static void setLogLevel(JobConf job, Level level) { InputConfigurator.setLogLevel(CLASS, job, level); }
/** * Gets the log level from this configuration. * * @param job * the Hadoop context for the configured job * @return the log level * @since 1.5.0 * @see #setLogLevel(JobConf, Level) */ protected static Level getLogLevel(JobConf job) { return InputConfigurator.getLogLevel(CLASS, job); }
/** * Sets the log level for this job. * * @param job * the Hadoop job instance to be configured * @param level * the logging level * @since 1.5.0 */ public static void setLogLevel(JobConf job, Level level) { OutputConfigurator.setLogLevel(CLASS, job, level); }
/** * Gets the log level from this configuration. * * @param job * the Hadoop context for the configured job * @return the log level * @since 1.5.0 * @see #setLogLevel(JobConf, Level) */ protected static Level getLogLevel(JobConf job) { return OutputConfigurator.getLogLevel(CLASS, job); }