Package com.foundationdb.qp.memoryadapter

Examples of com.foundationdb.qp.memoryadapter.MemoryAdapter


    public StoreAdapterHolder() {
    }

    public void init(Session session, ConfigurationService config, Store store, Schema schema) {
        storeAdapter = store.createAdapter(session, schema);
        memoryAdapter = new MemoryAdapter(schema, session, config);
    }
View Full Code Here


        return table;
    }

    private StoreAdapter getAdapter(Session session, Table table, Schema schema) {
        if (table.hasMemoryTableFactory())
            return new MemoryAdapter(schema, session, configService);
        return store.createAdapter(session, schema);
    }
View Full Code Here

    private void checkLimitTable (Object[][] expected, TableName tableName, int limit)
    {
        Table table = ais().getTable(tableName);
        Schema schema = SchemaCache.globalSchema(ais());
        TableRowType rowType = schema.tableRowType(table);
        MemoryAdapter adapter = new MemoryAdapter(schema, session(), configService());

        QueryContext queryContext = new SimpleQueryContext(adapter);
        Row[] rows = objectToRows(expected, rowType);

        Cursor cursor = API.cursor(
View Full Code Here

    private void checkSubsetTable(Object[][] expected, TableName tableName, int columnNum)
    {
        Table table = ais().getTable(tableName);
        Schema schema = SchemaCache.globalSchema(ais());
        TableRowType rowType = schema.tableRowType(table);
        MemoryAdapter adapter = new MemoryAdapter(schema, session(), configService());

        QueryContext queryContext = new SimpleQueryContext(adapter);
       
        List<TPreparedExpression> pExpressions = new ArrayList<>(1);
      
View Full Code Here

    private void checkTable (Object[][] expected, TableName table) {
        Table serverTable = ais().getTable(table);
        Schema schema = SchemaCache.globalSchema(ais());
        TableRowType rowType = schema.tableRowType(serverTable);
        MemoryAdapter adapter = new MemoryAdapter(schema, session(), null);

        Row[] rows = objectToRows(expected, rowType);

       
        Group group = serverTable.getGroup();
        RowCursor cursor = adapter.newGroupCursor(group);
        compareRows(rows, cursor, false);
    }
View Full Code Here

        schemaManager = new MockSchemaManager(ais, typesRegistry, typesTranslator);
        nameGenerator = new DefaultNameGenerator();
        createTables();
        bist = new BasicInfoSchemaTablesServiceImpl(schemaManager, null, null);
        bist.attachFactories(ais);
        adapter = new MemoryAdapter(new Schema(ais), null, null);
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.memoryadapter.MemoryAdapter

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.