Class CloneConfigurationImpl
- java.lang.Object
-
- org.apache.accumulo.core.client.impl.CloneConfigurationImpl
-
- All Implemented Interfaces:
CloneConfiguration
,CloneConfiguration.Builder
public class CloneConfigurationImpl extends Object implements CloneConfiguration, CloneConfiguration.Builder
ACloneConfiguration
implementation 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 CloneConfiguration
build()
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.boolean
isFlush()
Determines if memory is flushed in the source table before cloning.boolean
isKeepOffline()
The new table is normally brought online after the cloning process.CloneConfiguration.Builder
setFlush(boolean flush)
Determines if memory is flushed in the source table before cloning.CloneConfiguration.Builder
setKeepOffline(boolean keepOffline)
The new table is normally brought online after the cloning process.CloneConfiguration.Builder
setPropertiesToExclude(Set<String> propertiesToExclude)
The source table properties are copied, this allows reverting to system defaults for some of those properties.CloneConfiguration.Builder
setPropertiesToSet(Map<String,String> propertiesToSet)
The source table properties are copied.String
toString()
-
-
-
Method Detail
-
isFlush
public boolean isFlush()
Description copied from interface:CloneConfiguration
Determines if memory is flushed in the source table before cloning.- Specified by:
isFlush
in interfaceCloneConfiguration
- Returns:
- true if memory is flushed in the source table before cloning.
-
getPropertiesToSet
public Map<String,String> getPropertiesToSet()
Description copied from interface:CloneConfiguration
The source table properties are copied. This allows overriding of some of those properties.- Specified by:
getPropertiesToSet
in interfaceCloneConfiguration
- Returns:
- The source table properties to override.
-
getPropertiesToExclude
public Set<String> getPropertiesToExclude()
Description copied from interface:CloneConfiguration
The source table properties are copied, this allows reverting to system defaults for some of those properties.- Specified by:
getPropertiesToExclude
in interfaceCloneConfiguration
- Returns:
- The properties that are to be reverted to system defaults.
-
isKeepOffline
public boolean isKeepOffline()
Description copied from interface:CloneConfiguration
The new table is normally brought online after the cloning process. This allows leaving the new table offline- Specified by:
isKeepOffline
in 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.Builder
Determines if memory is flushed in the source table before cloning.- Specified by:
setFlush
in 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.Builder
The source table properties are copied. This allows overriding of some of those properties.- Specified by:
setPropertiesToSet
in interfaceCloneConfiguration.Builder
- Parameters:
propertiesToSet
- The source table properties to override.
-
setPropertiesToExclude
public CloneConfiguration.Builder setPropertiesToExclude(Set<String> propertiesToExclude)
Description copied from interface:CloneConfiguration.Builder
The source table properties are copied, this allows reverting to system defaults for some of those properties.- Specified by:
setPropertiesToExclude
in 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.Builder
The new table is normally brought online after the cloning process. This allows leaving the new table offline- Specified by:
setKeepOffline
in 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.Builder
Build the clone configuration- Specified by:
build
in interfaceCloneConfiguration.Builder
- Returns:
- the built immutable clone configuration
-
-