Package org.teiid.vdb.runtime

Examples of org.teiid.vdb.runtime.VDBKey


        VDBKey key1 = new VDBKey("b", "1"); //$NON-NLS-1$ //$NON-NLS-2$
        assertFalse(key.equals(key1));
    }
   
    public void testNameEndingInNumber() {
        VDBKey key = new VDBKey("a1", "1")//$NON-NLS-1$ //$NON-NLS-2$
        VDBKey key1 = new VDBKey("a", "11"); //$NON-NLS-1$ //$NON-NLS-2$
        assertFalse(key.equals(key1));
    }
View Full Code Here


        VDBKey key1 = new VDBKey("a", "11"); //$NON-NLS-1$ //$NON-NLS-2$
        assertFalse(key.equals(key1));
    }
   
    public void testDiffertVersion() {
        VDBKey key = new VDBKey("a", "1")//$NON-NLS-1$ //$NON-NLS-2$
        VDBKey key1 = new VDBKey("a", "11"); //$NON-NLS-1$ //$NON-NLS-2$
        assertFalse(key.equals(key1));
    }
View Full Code Here

      final MatTableInfo info = globalStore.getMatTableInfo(tableName);
      Long loadTime = null;
      if (this.distributedCache != null) {
        MatTableKey key = new MatTableKey();
        key.name = tableName;
        key.vdb = new VDBKey(context.getVdbName(), context.getVdbVersion());
       
        MatTableEntry entry = this.tables.get(key);
        boolean firstload = !info.isValid();
        if (entry != null && entry.lastUpdate > info.getUpdateTime()
            && info.getState() != MatState.LOADING) {
View Full Code Here

  }

  private void touchTable(CommandContext context, String fullName, boolean valid) {
    MatTableKey key = new MatTableKey();
    key.name = fullName;
    key.vdb = new VDBKey(context.getVdbName(), context.getVdbVersion());
    MatTableEntry matTableEntry = new MatTableEntry();
    matTableEntry.valid = valid;
    tables.put(key, matTableEntry, null);
  }
View Full Code Here

    clearCache(this.distributedCache, vdbName, version);
  }
 
  private void clearCache(Cache<CacheID, T> cache, String vdbName, int version) {
    Set<CacheID> keys = cache.keys();
    VDBKey vdbKey = new VDBKey(vdbName, version);
    for (CacheID key:keys) {
      if (key.vdbInfo.equals(vdbKey)) {
        cache.remove(key);
      }
    }
View Full Code Here

      this(pi, sql, context.getVdbName(), context.getVdbVersion(), context.getSessionId(), context.getUserName());
    }
   
    public CacheID(ParseInfo pi, String sql, String vdbName, int vdbVersion, String sessionId, String userName){
      this.sql = sql;
      this.vdbInfo = new VDBKey(vdbName, vdbVersion);
      this.pi = pi;
      this.originalSessionId = sessionId;
      this.originalUserName = userName;
    }
View Full Code Here

TOP

Related Classes of org.teiid.vdb.runtime.VDBKey

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.