public static interface RFile.WriterOptions
Modifier and Type | Method and Description |
---|---|
RFileWriter |
build() |
RFile.WriterOptions |
withSampler(SamplerConfiguration samplerConf)
An option to store sample data in the generated RFile.
|
RFile.WriterOptions |
withSummarizers(SummarizerConfiguration... summarizerConf)
Enable generating summary data in the created RFile by running
Summarizer 's based on
the specified configuration. |
RFile.WriterOptions |
withTableProperties(Iterable<Map.Entry<String,String>> props)
Create an RFile using the same configuration as an Accumulo table.
|
RFile.WriterOptions |
withTableProperties(Map<String,String> props) |
RFile.WriterOptions |
withVisibilityCacheSize(int maxSize) |
RFile.WriterOptions withSummarizers(SummarizerConfiguration... summarizerConf)
Summarizer
's based on
the specified configuration.summarizerConf
- Configuration for summarizer to run.RFile.WriterOptions withSampler(SamplerConfiguration samplerConf)
samplerConf
- configuration to use when generating sample data.IllegalArgumentException
- if table properties were previously specified and the table properties also specify
a sampler.RFile.WriterOptions withTableProperties(Iterable<Map.Entry<String,String>> props)
TableOperations.getProperties(String)
. Any property that
impacts file behavior regardless of whether it has the Property.TABLE_PREFIX
may be
accepted and used. For example, cache and crypto properties could be passed here.props
- iterable over Accumulo table key value properties.IllegalArgumentException
- if sampler was previously specified and the table properties also specify a
sampler.RFile.WriterOptions withTableProperties(Map<String,String> props)
withTableProperties(Iterable)
RFile.WriterOptions withVisibilityCacheSize(int maxSize)
maxSize
- As keys are added to an RFile the visibility field is validated. Validating the
visibility field requires parsing it. In order to make validation faster, previously
seen visibilities are cached. This option allows setting the maximum size of this
cache.RFileWriter build() throws IOException
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.