Class NewTableConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.client.admin.NewTableConfiguration
-
-
Constructor Summary
Constructors Constructor Description NewTableConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewTableConfiguration
enableSampling(SamplerConfiguration samplerConfiguration)
Enable building a sample data set on the new table using the given sampler configuration.Map<String,String>
getProperties()
Retrieves the complete set of currently configured table properties to be applied to a table when this configuration object is used.TimeType
getTimeType()
Retrieve the time type currently configured.NewTableConfiguration
setProperties(Map<String,String> prop)
Sets additional properties to be applied to tables created with this configuration.NewTableConfiguration
setTimeType(TimeType tt)
Configure logical or millisecond time for tables created with this configuration.NewTableConfiguration
withoutDefaultIterators()
Currently the only default iterator is theVersioningIterator
.
-
-
-
Method Detail
-
setTimeType
public NewTableConfiguration setTimeType(TimeType tt)
Configure logical or millisecond time for tables created with this configuration.- Parameters:
tt
- the time type to use; defaults to milliseconds- Returns:
- this
-
getTimeType
public TimeType getTimeType()
Retrieve the time type currently configured.- Returns:
- the time type
-
withoutDefaultIterators
public NewTableConfiguration withoutDefaultIterators()
Currently the only default iterator is theVersioningIterator
. This method will cause the table to be created without that iterator, or any others which may become defaults in the future.- Returns:
- this
-
setProperties
public NewTableConfiguration setProperties(Map<String,String> prop)
Sets additional properties to be applied to tables created with this configuration. Additional calls to this method replaces properties set by previous calls.- Parameters:
prop
- additional properties to add to the table when it is created- Returns:
- this
-
getProperties
public Map<String,String> getProperties()
Retrieves the complete set of currently configured table properties to be applied to a table when this configuration object is used.- Returns:
- the current properties configured
-
enableSampling
public NewTableConfiguration enableSampling(SamplerConfiguration samplerConfiguration)
Enable building a sample data set on the new table using the given sampler configuration.- Since:
- 1.8.0
-
-