Class AbstractCoreKeyIteratorSettingsFactory
- java.lang.Object
-
- uk.gov.gchq.gaffer.accumulostore.key.core.AbstractCoreKeyIteratorSettingsFactory
-
- All Implemented Interfaces:
IteratorSettingFactory
- Direct Known Subclasses:
ByteEntityIteratorSettingsFactory,ClassicIteratorSettingsFactory
public abstract class AbstractCoreKeyIteratorSettingsFactory extends Object implements IteratorSettingFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractCoreKeyIteratorSettingsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.accumulo.core.client.IteratorSettinggetAggregatorIteratorSetting(AccumuloStore store)Returns an Iterator that will aggregate values in the accumulo table, this iterator will be applied to the table on creationorg.apache.accumulo.core.client.IteratorSettinggetBloomFilterIteratorSetting(org.apache.hadoop.util.bloom.BloomFilter filter)Returns anIteratorSettingthat can be used to apply an iterator that will filter elements based on their vertices membership in a givenBloomFilterto aScanner.org.apache.accumulo.core.client.IteratorSettinggetElementPostAggregationFilterIteratorSetting(View view, AccumuloStore store)Returns anIteratorSettingthat can be used to apply an iterator that will filter elements based on predicates specified in the postAggregation block in the view to aScanner.org.apache.accumulo.core.client.IteratorSettinggetElementPreAggregationFilterIteratorSetting(View view, AccumuloStore store)Returns anIteratorSettingthat can be used to apply an iterator that will filter elements based on predicates specified in the preAggregation block in the view to aScanner.org.apache.accumulo.core.client.IteratorSettinggetIteratorSetting(AccumuloStore store, String iteratorName)Returns the iterator settings for a given iterator name.org.apache.accumulo.core.client.IteratorSettinggetQueryTimeAggregatorIteratorSetting(View view, AccumuloStore store)Returns an Iterator that will aggregate values at query time.org.apache.accumulo.core.client.IteratorSettinggetRowIDAggregatorIteratorSetting(AccumuloStore store, String columnFamily)Returns an Iterator that will aggregate properties across a range of RowID's for a given columnFamilyorg.apache.accumulo.core.client.IteratorSettinggetValidatorIteratorSetting(AccumuloStore store)Returns an Iterator that will validate elements in the accumulo table based on the validator provided in theSchemathis iterator will be applied to the table on creationbooleanqueryTimeAggregatorRequired(View view, AccumuloStore store)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.accumulostore.key.IteratorSettingFactory
getEdgeEntityDirectionFilterIteratorSetting, getElementPropertyRangeQueryFilter
-
-
-
-
Method Detail
-
getBloomFilterIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getBloomFilterIteratorSetting(org.apache.hadoop.util.bloom.BloomFilter filter) throws IteratorSettingExceptionDescription copied from interface:IteratorSettingFactoryReturns anIteratorSettingthat can be used to apply an iterator that will filter elements based on their vertices membership in a givenBloomFilterto aScanner.- Specified by:
getBloomFilterIteratorSettingin interfaceIteratorSettingFactory- Parameters:
filter- the bloom filter- Returns:
- A new
IteratorSettingfor an Iterator capable of filtering elements based on checking its serialised form for membership in aBloomFilter - Throws:
IteratorSettingException- if an iterator setting could not be created
-
getElementPreAggregationFilterIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getElementPreAggregationFilterIteratorSetting(View view, AccumuloStore store) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns anIteratorSettingthat can be used to apply an iterator that will filter elements based on predicates specified in the preAggregation block in the view to aScanner.- Specified by:
getElementPreAggregationFilterIteratorSettingin interfaceIteratorSettingFactory- Parameters:
view- the operation viewstore- the accumulo store- Returns:
- A new
IteratorSettingfor an Iterator capable of filteringElements based on aView - Throws:
IteratorSettingException- if an iterator setting could not be created
-
getElementPostAggregationFilterIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getElementPostAggregationFilterIteratorSetting(View view, AccumuloStore store) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns anIteratorSettingthat can be used to apply an iterator that will filter elements based on predicates specified in the postAggregation block in the view to aScanner.- Specified by:
getElementPostAggregationFilterIteratorSettingin interfaceIteratorSettingFactory- Parameters:
view- the operation viewstore- the accumulo store- Returns:
- A new
IteratorSettingfor an Iterator capable of filteringElements based on aView - Throws:
IteratorSettingException- if an iterator setting could not be created
-
getAggregatorIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getAggregatorIteratorSetting(AccumuloStore store) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns an Iterator that will aggregate values in the accumulo table, this iterator will be applied to the table on creation- Specified by:
getAggregatorIteratorSettingin interfaceIteratorSettingFactory- Parameters:
store- the accumulo store- Returns:
- A new
IteratorSettingfor an Iterator that will aggregate elements where they have the same key based on theSchema - Throws:
IteratorSettingException- if an iterator setting could not be created
-
getRowIDAggregatorIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getRowIDAggregatorIteratorSetting(AccumuloStore store, String columnFamily) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns an Iterator that will aggregate properties across a range of RowID's for a given columnFamily- Specified by:
getRowIDAggregatorIteratorSettingin interfaceIteratorSettingFactory- Parameters:
store- the accumulo storecolumnFamily- the columnFamily that will be summarised- Returns:
- A new
IteratorSettingfor an Iterator that will aggregate elements at query time on theSchema - Throws:
IteratorSettingException- if an iterator setting could not be created
-
getValidatorIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getValidatorIteratorSetting(AccumuloStore store)
Description copied from interface:IteratorSettingFactoryReturns an Iterator that will validate elements in the accumulo table based on the validator provided in theSchemathis iterator will be applied to the table on creation- Specified by:
getValidatorIteratorSettingin interfaceIteratorSettingFactory- Parameters:
store- the accumulo store- Returns:
- A new
IteratorSettingfor an Iterator that will validate elements
-
getQueryTimeAggregatorIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getQueryTimeAggregatorIteratorSetting(View view, AccumuloStore store) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns an Iterator that will aggregate values at query time. This is to be used for the summarise option on getElement queries.- Specified by:
getQueryTimeAggregatorIteratorSettingin interfaceIteratorSettingFactory- Parameters:
view- the operation viewstore- the accumulo store- Returns:
- A new
IteratorSettingfor an Iterator that will aggregate elements at query time on theSchema - Throws:
IteratorSettingException- if an iterator setting could not be created
-
queryTimeAggregatorRequired
public boolean queryTimeAggregatorRequired(View view, AccumuloStore store)
-
getIteratorSetting
public org.apache.accumulo.core.client.IteratorSetting getIteratorSetting(AccumuloStore store, String iteratorName) throws IteratorSettingException
Description copied from interface:IteratorSettingFactoryReturns the iterator settings for a given iterator name. Allowed iterator names are: Aggregator, Validator and Bloom_Filter.- Specified by:
getIteratorSettingin interfaceIteratorSettingFactory- Parameters:
store- the accumulo storeiteratorName- the name of the iterator to return the settings for- Returns:
- the iterator settings for a given iterator name.
- Throws:
IteratorSettingException- if an iterator setting could not be created
-
-