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 ImportConfiguration
build()
Build the import table configurationboolean
isKeepMappings()
SeeImportConfiguration.Builder.setKeepMappings(boolean)
for full description.boolean
isKeepOffline()
ImportConfiguration.Builder
setKeepMappings(boolean keepMappings)
During the table import transaction, an intermediateConstants.IMPORT_MAPPINGS_FILE
file is created and usually removed after the import process is completed.ImportConfiguration.Builder
setKeepOffline(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.Builder
The new table is normally brought online after the import process. This allows leaving the new table offline- Specified by:
setKeepOffline
in 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.Builder
During the table import transaction, an intermediateConstants.IMPORT_MAPPINGS_FILE
file 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:
setKeepMappings
in interfaceImportConfiguration.Builder
- Parameters:
keepMappings
- true if theConstants.IMPORT_MAPPINGS_FILE
is to be kept after importing.
-
build
public ImportConfiguration build()
Description copied from interface:ImportConfiguration.Builder
Build the import table configuration- Specified by:
build
in interfaceImportConfiguration.Builder
- Returns:
- the built immutable import table configuration
-
isKeepOffline
public boolean isKeepOffline()
- Specified by:
isKeepOffline
in 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:ImportConfiguration
SeeImportConfiguration.Builder.setKeepMappings(boolean)
for full description.- Specified by:
isKeepMappings
in interfaceImportConfiguration
- Returns:
- true if the
Constants.IMPORT_MAPPINGS_FILE
is to be kept after importing.
-
-