// transitional feature
  public PersistentStore getRowStore(TableBase table) {

    if (table.isSessionBased) {
      return persistentStoreCollection.getSessionStore(table, table.getPersistenceId());
    }

    return database.persistentStoreCollection.getStore(table.getPersistenceId());
  }
Esempio n. 2
0
    public RangeIteratorBase(Session session, PersistentStore store, TableBase t, int position) {

      this.session = session;
      this.rangePosition = position;
      this.store = store;
      it = t.rowIterator(store);
      isBeforeFirst = true;
    }
  public PersistentStore getSubqueryRowStore(TableBase table, boolean isCached) {

    RowStoreHybrid store =
        (RowStoreHybrid) persistentStoreCollection.getSessionStore(table, table.getPersistenceId());

    if (store != null) {
      store.removeAll();

      return store;
    }

    return new RowStoreHybrid(session, persistentStoreCollection, table, isCached);
  }
  /**
   * Constructor when read from the disk into the Cache.
   *
   * @param t table
   * @param in data source
   * @throws IOException
   */
  public RowAVLDisk(TableBase t, RowInputInterface in) throws IOException {

    super(t, (Object[]) null);

    position = in.getPos();
    storageSize = in.getSize();

    int indexcount = t.getIndexCount();

    nPrimaryNode = new NodeAVLDisk(this, in, 0);

    NodeAVL n = nPrimaryNode;

    for (int i = 1; i < indexcount; i++) {
      n.nNext = new NodeAVLDisk(this, in, i);
      n = n.nNext;
    }

    rowData = in.readData(table.getColumnTypes());
  }