Examples of HashKey


Examples of com.barrybecker4.game.twoplayer.common.search.transposition.HashKey

    @Override
    protected TwoPlayerMove searchInternal( TwoPlayerMove lastMove, int depth,
                                          SearchWindow window, SearchTreeNode parent ) {
        //System.out.println("moves="+ searchable.getMoveList());
        HashKey key = searchable.getHashKey();
        Entry entry = lookupTable.get(key);
        if (lookupTable.entryExists(entry, lastMove, depth, window))
            return entry.bestMove;

        boolean done = searchable.done( lastMove, false);
View Full Code Here

Examples of com.barrybecker4.game.twoplayer.common.search.transposition.HashKey

    @Override
    protected TwoPlayerMove searchInternal( TwoPlayerMove lastMove,
                                           int depth,
                                           SearchWindow window, SearchTreeNode parent ) {
        HashKey key = searchable.getHashKey();
        Entry entry = lookupTable.get(key);
        if (lookupTable.entryExists(entry, lastMove, depth, window)) {
            if (entry.lowerValue > window.alpha) {
                entry.bestMove.setInheritedValue(entry.lowerValue);
                return entry.bestMove;
View Full Code Here

Examples of com.caucho.util.HashKey

        _digest.update((byte) ch);
        _digest.update((byte) (ch >> 8));
      }

      return new HashKey(_digest.digest());
    }
  }
View Full Code Here

Examples of com.caucho.util.HashKey

        _digest.update((byte) ch);
        _digest.update((byte) (ch >> 8));
      }

      return new HashKey(_digest.digest());
    }
  }
View Full Code Here

Examples of com.caucho.util.HashKey

      Object []fullKey = new Object[] { config.getGuid(), key };
     
      config.getKeySerializer().serialize(fullKey, dOut);

      HashKey hashKey = new HashKey(dOut.digest());

      return hashKey;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of com.caucho.util.HashKey

      NullDigestOutputStream dOut = new NullDigestOutputStream(digest);

      keySerializer.serialize(key, dOut);

      HashKey hashKey = new HashKey(dOut.digest());

      return hashKey;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of com.caucho.util.HashKey

  {
    if (valueHash == null)
      return;
   
    for (MnodeOrphanListener listener : _orphanListeners) {
      listener.onOrphanValue(new HashKey(valueHash));
    }
  }
View Full Code Here

Examples of com.caucho.util.HashKey

        long expireTimeout = rs.getLong(7);
        long idleTimeout = rs.getLong(8);
        long leaseTimeout = rs.getLong(9);
        long localReadTimeout = rs.getLong(10);

        HashKey value = valueHash != null ? new HashKey(valueHash) : null;
        HashKey cacheKey = cacheHash != null ? new HashKey(cacheHash) : null;

        if (keyHash == null)
          continue;

        entryList.add(new CacheData(new HashKey(keyHash),
                                    value,
                                    cacheKey,
                                    flags,
                                    version,
                                    itemUpdateTime,
View Full Code Here

Examples of com.caucho.util.HashKey

        long expireTimeout = rs.getLong(7);
        long idleTimeout = rs.getLong(8);
        long leaseTimeout = rs.getLong(9);
        long localReadTimeout = rs.getLong(10);

        HashKey value = valueHash != null ? new HashKey(valueHash) : null;
        /*
        HashKey cacheKey = cacheHash != null ? new HashKey(cacheHash) : null;
        */

        if (keyHash == null)
          continue;

        entryList.add(new CacheData(new HashKey(keyHash),
                                    value,
                                    cacheKey,
                                    flags,
                                    version,
                                    itemUpdateTime,
View Full Code Here

Examples of com.caucho.util.HashKey

        long leaseTimeout = rs.getLong(8);
        long localReadTimeout = rs.getLong(9);
        long updateTime = rs.getLong(10);
        long accessTime = Alarm.getExactTime();

        HashKey cacheHashKey
          = cacheHash != null ? new HashKey(cacheHash) : null;

        HashKey valueHashKey
          = valueHash != null ? new HashKey(valueHash) : null;

        if (log.isLoggable(Level.FINER))
          log.finer(this + " load " + id + " value=" + valueHashKey + " cache=" + cacheHashKey);
       
        return new MnodeValue(valueHashKey, null, cacheHashKey,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.