Class CloneConfigurationImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.CloneConfigurationImpl
-
- All Implemented Interfaces:
CloneConfiguration,CloneConfiguration.Builder
public class CloneConfigurationImpl extends Object implements CloneConfiguration, CloneConfiguration.Builder
ACloneConfigurationimplementation which also implements the builder thereof- Since:
- 1.10 and 2.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.admin.CloneConfiguration
CloneConfiguration.Builder
-
-
Constructor Summary
Constructors Constructor Description CloneConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloneConfigurationbuild()Build the clone configurationSet<String>getPropertiesToExclude()The source table properties are copied, this allows reverting to system defaults for some of those properties.Map<String,String>getPropertiesToSet()The source table properties are copied.booleanisFlush()Determines if memory is flushed in the source table before cloning.booleanisKeepOffline()The new table is normally brought online after the cloning process.CloneConfiguration.BuildersetFlush(boolean flush)Determines if memory is flushed in the source table before cloning.CloneConfiguration.BuildersetKeepOffline(boolean keepOffline)The new table is normally brought online after the cloning process.CloneConfiguration.BuildersetPropertiesToExclude(Set<String> propertiesToExclude)The source table properties are copied, this allows reverting to system defaults for some of those properties.CloneConfiguration.BuildersetPropertiesToSet(Map<String,String> propertiesToSet)The source table properties are copied.StringtoString()
-
-
-
Method Detail
-
isFlush
public boolean isFlush()
Description copied from interface:CloneConfigurationDetermines if memory is flushed in the source table before cloning.- Specified by:
isFlushin interfaceCloneConfiguration- Returns:
- true if memory is flushed in the source table before cloning.
-
getPropertiesToSet
public Map<String,String> getPropertiesToSet()
Description copied from interface:CloneConfigurationThe source table properties are copied. This allows overriding of some of those properties.- Specified by:
getPropertiesToSetin interfaceCloneConfiguration- Returns:
- The source table properties to override.
-
getPropertiesToExclude
public Set<String> getPropertiesToExclude()
Description copied from interface:CloneConfigurationThe source table properties are copied, this allows reverting to system defaults for some of those properties.- Specified by:
getPropertiesToExcludein interfaceCloneConfiguration- Returns:
- The properties that are to be reverted to system defaults.
-
isKeepOffline
public boolean isKeepOffline()
Description copied from interface:CloneConfigurationThe new table is normally brought online after the cloning process. This allows leaving the new table offline- Specified by:
isKeepOfflinein interfaceCloneConfiguration- Returns:
- true if the new table is to be kept offline after cloning.
-
setFlush
public CloneConfiguration.Builder setFlush(boolean flush)
Description copied from interface:CloneConfiguration.BuilderDetermines if memory is flushed in the source table before cloning.- Specified by:
setFlushin interfaceCloneConfiguration.Builder- Parameters:
flush- true if memory is flushed in the source table before cloning.
-
setPropertiesToSet
public CloneConfiguration.Builder setPropertiesToSet(Map<String,String> propertiesToSet)
Description copied from interface:CloneConfiguration.BuilderThe source table properties are copied. This allows overriding of some of those properties.- Specified by:
setPropertiesToSetin interfaceCloneConfiguration.Builder- Parameters:
propertiesToSet- The source table properties to override.
-
setPropertiesToExclude
public CloneConfiguration.Builder setPropertiesToExclude(Set<String> propertiesToExclude)
Description copied from interface:CloneConfiguration.BuilderThe source table properties are copied, this allows reverting to system defaults for some of those properties.- Specified by:
setPropertiesToExcludein interfaceCloneConfiguration.Builder- Parameters:
propertiesToExclude- The properties that are to be reverted to system defaults.
-
setKeepOffline
public CloneConfiguration.Builder setKeepOffline(boolean keepOffline)
Description copied from interface:CloneConfiguration.BuilderThe new table is normally brought online after the cloning process. This allows leaving the new table offline- Specified by:
setKeepOfflinein interfaceCloneConfiguration.Builder- Parameters:
keepOffline- true if the new table is to be kept offline after cloning.
-
build
public CloneConfiguration build()
Description copied from interface:CloneConfiguration.BuilderBuild the clone configuration- Specified by:
buildin interfaceCloneConfiguration.Builder- Returns:
- the built immutable clone configuration
-
-