Class ImportConfigurationImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.ImportConfigurationImpl
-
- All Implemented Interfaces:
ImportConfiguration,ImportConfiguration.Builder
public class ImportConfigurationImpl extends Object implements ImportConfiguration, ImportConfiguration.Builder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.admin.ImportConfiguration
ImportConfiguration.Builder
-
-
Field Summary
-
Fields inherited from interface org.apache.accumulo.core.client.admin.ImportConfiguration
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ImportConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportConfigurationbuild()Build the import table configurationbooleanisKeepMappings()SeeImportConfiguration.Builder.setKeepMappings(boolean)for full description.booleanisKeepOffline()ImportConfiguration.BuildersetKeepMappings(boolean keepMappings)During the table import transaction, an intermediateConstants.IMPORT_MAPPINGS_FILEfile is created and usually removed after the import process is completed.ImportConfiguration.BuildersetKeepOffline(boolean keepOffline)The new table is normally brought online after the import process.
-
-
-
Method Detail
-
setKeepOffline
public ImportConfiguration.Builder setKeepOffline(boolean keepOffline)
Description copied from interface:ImportConfiguration.BuilderThe new table is normally brought online after the import process. This allows leaving the new table offline- Specified by:
setKeepOfflinein interfaceImportConfiguration.Builder- Parameters:
keepOffline- true if the new table is to be kept offline after importing.
-
setKeepMappings
public ImportConfiguration.Builder setKeepMappings(boolean keepMappings)
Description copied from interface:ImportConfiguration.BuilderDuring the table import transaction, an intermediateConstants.IMPORT_MAPPINGS_FILEfile is created and usually removed after the import process is completed. Setting this option to true will keep the file after the import is finished. Typically, when this is set to true,ImportConfiguration.Builder.setKeepOffline(boolean)is also set to true, allowing for validation/debugging before bringing the new table online.- Specified by:
setKeepMappingsin interfaceImportConfiguration.Builder- Parameters:
keepMappings- true if theConstants.IMPORT_MAPPINGS_FILEis to be kept after importing.
-
build
public ImportConfiguration build()
Description copied from interface:ImportConfiguration.BuilderBuild the import table configuration- Specified by:
buildin interfaceImportConfiguration.Builder- Returns:
- the built immutable import table configuration
-
isKeepOffline
public boolean isKeepOffline()
- Specified by:
isKeepOfflinein interfaceImportConfiguration- Returns:
- true if the new table is to be kept offline, false the table will be brought online.
-
isKeepMappings
public boolean isKeepMappings()
Description copied from interface:ImportConfigurationSeeImportConfiguration.Builder.setKeepMappings(boolean)for full description.- Specified by:
isKeepMappingsin interfaceImportConfiguration- Returns:
- true if the
Constants.IMPORT_MAPPINGS_FILEis to be kept after importing.
-
-