Package com.foundationdb.server.store.statistics

Examples of com.foundationdb.server.store.statistics.IndexStatisticsService


    }

    @Test
    public void test()
    {
        IndexStatisticsService statsService = statsService();
        IndexStatistics stats = statsService.getIndexStatistics(session(), index);
        Histogram histogram;
        List<HistogramEntry> entries;
        // Multi-column histogram on (a)
        histogram = stats.getHistogram(0, 1);
        assertEquals(0, histogram.getFirstColumn());
View Full Code Here


        txnService().run(session(), new Callable<Void>() {
            @Override
            public Void call() throws Exception {
                File file = new File(STATS_FILE);
                if (file.exists()) {
                    IndexStatisticsService service = serviceManager().getServiceByClass(IndexStatisticsService.class);
                    service.loadIndexStatistics(session(), SCHEMA_NAME, file);
                }
                return null;
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.store.statistics.IndexStatisticsService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.