Constructor and Description |
---|
NewTableConfiguration() |
Modifier and Type | Method and Description |
---|---|
NewTableConfiguration |
attachIterator(IteratorSetting setting)
Configure iterator settings for a table prior to its creation.
|
NewTableConfiguration |
attachIterator(IteratorSetting setting,
EnumSet<IteratorUtil.IteratorScope> scopes)
Configure iterator settings for a table prior to its creation.
|
NewTableConfiguration |
createOffline()
Create the new table in an offline state.
|
NewTableConfiguration |
enableSampling(SamplerConfiguration samplerConfiguration)
Enable building a sample data set on the new table using the given sampler configuration.
|
NewTableConfiguration |
enableSummarization(SummarizerConfiguration... configs)
Enables creating summary statistics using
Summarizer 's for the new table. |
InitialTableState |
getInitialTableState()
Return value indicating whether table is to be created in offline or online mode.
|
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.
|
Collection<org.apache.hadoop.io.Text> |
getSplits()
Return Collection of split values.
|
TimeType |
getTimeType()
Retrieve the time type currently configured.
|
NewTableConfiguration |
setLocalityGroups(Map<String,Set<org.apache.hadoop.io.Text>> groups)
Configures a table's locality groups prior to initial table creation.
|
NewTableConfiguration |
setProperties(Map<String,String> props)
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 the
VersioningIterator . |
NewTableConfiguration |
withSplits(SortedSet<org.apache.hadoop.io.Text> splits)
Create a new table with pre-configured splits from the provided input collection.
|
public NewTableConfiguration setTimeType(TimeType tt)
tt
- the time type to use; defaults to millisecondspublic TimeType getTimeType()
public NewTableConfiguration withoutDefaultIterators()
VersioningIterator
. This method will cause
the table to be created without that iterator, or any others which may become defaults in the
future.public NewTableConfiguration createOffline()
public InitialTableState getInitialTableState()
public NewTableConfiguration setProperties(Map<String,String> props)
props
- additional properties to add to the table when it is createdpublic Map<String,String> getProperties()
public Collection<org.apache.hadoop.io.Text> getSplits()
public NewTableConfiguration enableSampling(SamplerConfiguration samplerConfiguration)
public NewTableConfiguration enableSummarization(SummarizerConfiguration... configs)
Summarizer
's for the new table.public NewTableConfiguration setLocalityGroups(Map<String,Set<org.apache.hadoop.io.Text>> groups)
groups
- mapping of locality group names to column families in the locality groupTableOperations.setLocalityGroups(java.lang.String, java.util.Map<java.lang.String, java.util.Set<org.apache.hadoop.io.Text>>)
public NewTableConfiguration withSplits(SortedSet<org.apache.hadoop.io.Text> splits)
splits
- A SortedSet of String values to be used as split points in a newly created table.public NewTableConfiguration attachIterator(IteratorSetting setting)
setting
- object specifying the properties of the iteratorTableOperations.attachIterator(String, IteratorSetting)
public NewTableConfiguration attachIterator(IteratorSetting setting, EnumSet<IteratorUtil.IteratorScope> scopes)
setting
- object specifying the properties of the iteratorscopes
- enumerated set of iterator scopesTableOperations.attachIterator(String, IteratorSetting, EnumSet)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.