org.pentaho.aggdes.model.StatisticsProvider Java Examples
The following examples show how to use
org.pentaho.aggdes.model.StatisticsProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MondrianSchemaLoaderTestIT.java From pentaho-aggdesigner with GNU General Public License v2.0 | 6 votes |
public void testMondrianStatisticsProvider() { MondrianSchemaLoader loader = new MondrianSchemaLoader(); Map<Parameter, Object> parameterValues = new HashMap<>(); parameterValues.put( loader.getParameters().get( 0 ), connectString ); parameterValues.put( loader.getParameters().get( 1 ), "Sales" ); Schema schema = loader.createSchema( parameterValues ); StatisticsProvider statsProvider = schema.getStatisticsProvider(); assertNotNull( statsProvider ); assertEquals( statsProvider.getFactRowCount(), 86837.0 ); List<Attribute> attributes = new ArrayList<>(); attributes.add( schema.getAttributes().get( 0 ) ); // spot check that these methods return a meaningful value assertEquals( statsProvider.getRowCount( attributes ), 3.0 ); assertEquals( statsProvider.getLoadTime( attributes ), 3.8555688E7 ); assertEquals( statsProvider.getSpace( attributes ), 20.0 ); }
Example #2
Source File: TileSuggester.java From Bats with Apache License 2.0 | 5 votes |
SchemaImpl(Lattice lattice, StatisticsProvider statisticsProvider) { this.statisticsProvider = statisticsProvider; this.table = new TableImpl(); final ImmutableList.Builder<AttributeImpl> attributeBuilder = ImmutableList.builder(); for (Lattice.Column column : lattice.columns) { attributeBuilder.add(new AttributeImpl(column, table)); } this.attributes = attributeBuilder.build(); }
Example #3
Source File: TileSuggester.java From Quicksql with MIT License | 5 votes |
SchemaImpl(Lattice lattice, StatisticsProvider statisticsProvider) { this.statisticsProvider = statisticsProvider; this.table = new TableImpl(); final ImmutableList.Builder<AttributeImpl> attributeBuilder = ImmutableList.builder(); for (Lattice.Column column : lattice.columns) { attributeBuilder.add(new AttributeImpl(column, table)); } this.attributes = attributeBuilder.build(); }
Example #4
Source File: TileSuggester.java From calcite with Apache License 2.0 | 5 votes |
SchemaImpl(Lattice lattice, StatisticsProvider statisticsProvider) { this.statisticsProvider = statisticsProvider; this.table = new TableImpl(); final ImmutableList.Builder<AttributeImpl> attributeBuilder = ImmutableList.builder(); for (Lattice.Column column : lattice.columns) { attributeBuilder.add(new AttributeImpl(column, table)); } this.attributes = attributeBuilder.build(); }
Example #5
Source File: TileSuggester.java From Bats with Apache License 2.0 | 4 votes |
public StatisticsProvider getStatisticsProvider() { return statisticsProvider; }
Example #6
Source File: TileSuggester.java From Quicksql with MIT License | 4 votes |
public StatisticsProvider getStatisticsProvider() { return statisticsProvider; }
Example #7
Source File: TileSuggester.java From calcite with Apache License 2.0 | 4 votes |
public StatisticsProvider getStatisticsProvider() { return statisticsProvider; }
Example #8
Source File: MondrianSchema.java From pentaho-aggdesigner with GNU General Public License v2.0 | 4 votes |
public StatisticsProvider getStatisticsProvider() { return statisticsProvider; }
Example #9
Source File: SchemaStub.java From pentaho-aggdesigner with GNU General Public License v2.0 | 4 votes |
public StatisticsProvider getStatisticsProvider() { return provider; }