Class AuthorizationSummarizer
java.lang.Object
org.apache.accumulo.core.client.summary.CountingSummarizer<ByteSequence>
org.apache.accumulo.core.client.summary.summarizers.AuthorizationSummarizer
- All Implemented Interfaces:
Summarizer
Counts unique authorizations in column visibility labels. Leverages super class to defend against
too many. This class is useful for discovering what authorizations are present when the expected
number of authorizations is small.
As an example, assume a data set of three keys with the column visibilities :
(A&C)|(A&D)
, A&B
, and C|E
. For these input this summarizer would output :
c:A=2
, c:B=1
, c:C=2
, D:1
, E:1
. Notice that even though
A
occurred 3 times in total, its only counted once per column visibility.
See the superclass documentation for more information about usage and configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.summary.CountingSummarizer
CountingSummarizer.Converter<K>
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.summary.Summarizer
Summarizer.Collector, Summarizer.Combiner, Summarizer.StatisticConsumer
-
Field Summary
Fields inherited from class org.apache.accumulo.core.client.summary.CountingSummarizer
COUNTER_STAT_PREFIX, DELETES_IGNORED_STAT, EMITTED_STAT, INGNORE_DELETES_DEFAULT, INGNORE_DELETES_OPT, MAX_CKL_DEFAULT, MAX_COUNTER_DEFAULT, MAX_COUNTER_LEN_OPT, MAX_COUNTERS_OPT, SEEN_STAT, TOO_LONG_STAT, TOO_MANY_STAT
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.accumulo.core.client.summary.CountingSummarizer
collector, combiner, copier, encoder
-
Constructor Details
-
AuthorizationSummarizer
public AuthorizationSummarizer()
-
-
Method Details
-
converter
- Specified by:
converter
in classCountingSummarizer<ByteSequence>
- Returns:
- A function that is used to convert each key value to zero or more counter objects. Each function returned should be independent.
-