public interface SummaryRetriever
Modifier and Type | Method and Description |
---|---|
SummaryRetriever |
endRow(CharSequence endRow)
The end row is inclusive.
|
SummaryRetriever |
endRow(org.apache.hadoop.io.Text endRow)
The end row is inclusive.
|
SummaryRetriever |
flush(boolean shouldFlush)
Forces a flush of data in memory to files before summary data is retrieved.
|
List<Summary> |
retrieve() |
SummaryRetriever |
startRow(CharSequence startRow)
The start row is not inclusive.
|
SummaryRetriever |
startRow(org.apache.hadoop.io.Text startRow)
The start row is not inclusive.
|
SummaryRetriever |
withConfiguration(Collection<SummarizerConfiguration> configs)
Allows specifying a set of summaries, generated using the specified configs, to retrieve.
|
SummaryRetriever |
withConfiguration(SummarizerConfiguration... config)
Allows specifying a set of summaries, generated using the specified configs, to retrieve.
|
SummaryRetriever |
withMatchingConfiguration(String regex)
Filters which summary data is retrieved.
|
SummaryRetriever flush(boolean shouldFlush)
SummaryRetriever startRow(org.apache.hadoop.io.Text startRow)
SummaryRetriever startRow(CharSequence startRow)
SummaryRetriever endRow(org.apache.hadoop.io.Text endRow)
SummaryRetriever endRow(CharSequence endRow)
SummaryRetriever withMatchingConfiguration(String regex)
Each set of summary data is generated using a specific SummarizerConfiguration
. The
methods withConfiguration(Collection)
and
withConfiguration(SummarizerConfiguration...)
allow selecting sets of summary data
based on exact SummarizerConfiguration
matches. This method enables less exact matching
using regular expressions.
The regular expression passed to this method is used in the following way on the server side to
match SummarizerConfiguration
object. When a SummarizerConfiguration
matches,
the summary data generated using that configuration is returned.
boolean doesConfigurationMatch(SummarizerConfiguration conf, String regex) {
// This is how conf is converted to a String in tablet servers for matching.
// The options are sorted to make writing regular expressions easier.
String confString = conf.getClassName()+" "+new TreeMap<>(conf.getOptions());
return Pattern.compile(regex).matcher(confString).matches();
}
SummaryRetriever withConfiguration(SummarizerConfiguration... config)
Using this method to be more selective may pull less data in to the tablet servers summary cache.
SummaryRetriever withConfiguration(Collection<SummarizerConfiguration> configs)
Using this method to be more selective may pull less data in to the tablet servers summary cache.
List<Summary> retrieve() throws AccumuloException, AccumuloSecurityException, TableNotFoundException
AccumuloException
AccumuloSecurityException
TableNotFoundException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.