Examples of keySize()


Examples of com.google.apphosting.api.DatastorePb.DeleteRequest.keySize()

      }
      Reference ref = KeyTranslator.convertToPb(key);

      int encodedKeySize = Protocol.stringSize(ref.encodingSize()) + 1;
      if (getDatastoreServiceConfig().exceedsWriteLimits(
          req.keySize() + 1, encodedReqSize + encodedKeySize)) {
        futures.add(makeAsyncCall(apiConfig, "Delete", req, new DeleteResponse()));
        encodedReqSize = baseEncodedReqSize;
        req = baseReq.clone();
      }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.DeleteRequest.keySize()

      encodedReqSize += encodedKeySize;
      req.addKey(ref);
    }

    if (req.keySize() > 0) {
      futures.add(makeAsyncCall(apiConfig, "Delete", req, new DeleteResponse()));
    }

    return registerInTransaction(txn,
        new CumulativeAggregateFuture<DeleteResponse, Void, Void>(futures) {
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetRequest.keySize()

      }
      Reference ref = KeyTranslator.convertToPb(key);

      int encodedKeySize = Protocol.stringSize(ref.encodingSize()) + 1;
      if (getDatastoreServiceConfig().exceedsReadLimits(
          req.keySize() + 1, encodedReqSize + encodedKeySize)) {
        futures.add(makeAsyncCall(apiConfig, "Get", req, new GetResponse()));
        encodedReqSize = baseEncodedReqSize;
        req = baseReq.clone();
      }
View Full Code Here

Examples of com.google.apphosting.api.DatastorePb.GetRequest.keySize()

      encodedReqSize += encodedKeySize;
      req.addKey(ref);
    }

    if (req.keySize() > 0) {
      futures.add(makeAsyncCall(apiConfig, "Get", req, new GetResponse()));
    }

    return registerInTransaction(txn,
        new IteratingAggregateFuture<GetResponse, Key, Map<Key, Entity>>(futures) {
View Full Code Here

Examples of fork.lib.math.applied.stat.FrequencyCount.keySize()

            HashMap<String, Integer> kvs= fc.getFrequencyCounts();
           

            File od= new File(d+"/"+size);
            od.mkdirs();
            double[] vs= new double[fcg.keySize()];
            double[] gvs= new double[fcg.keySize()];
            double[] nvs= new double[fcg.keySize()];
            for( int i=0; i<ks.length; i++ ){
                String k = ks[i].toString();
                double v= kvs.containsKey(k) ?
View Full Code Here

Examples of fork.lib.math.applied.stat.FrequencyCount.keySize()

           

            File od= new File(d+"/"+size);
            od.mkdirs();
            double[] vs= new double[fcg.keySize()];
            double[] gvs= new double[fcg.keySize()];
            double[] nvs= new double[fcg.keySize()];
            for( int i=0; i<ks.length; i++ ){
                String k = ks[i].toString();
                double v= kvs.containsKey(k) ?
                        (double) Math.round( (double) kvs.get(k)/ fc.totalCounts() * ks.length*1000 ) / 1000
View Full Code Here

Examples of fork.lib.math.applied.stat.FrequencyCount.keySize()

            File od= new File(d+"/"+size);
            od.mkdirs();
            double[] vs= new double[fcg.keySize()];
            double[] gvs= new double[fcg.keySize()];
            double[] nvs= new double[fcg.keySize()];
            for( int i=0; i<ks.length; i++ ){
                String k = ks[i].toString();
                double v= kvs.containsKey(k) ?
                        (double) Math.round( (double) kvs.get(k)/ fc.totalCounts() * ks.length*1000 ) / 1000
                        : 0d ;
View Full Code Here

Examples of fork.lib.math.applied.stat.FrequencyCount.keySize()

            for( int i=0; i<ks.length; i++ ){
                String k = ks[i].toString();
                double v= kvs.containsKey(k) ?
                        (double) Math.round( (double) kvs.get(k)/ fc.totalCounts() * ks.length*1000 ) / 1000
                        : 0d ;
                double gv= (double) Math.round((double)fcg.getFrequencyCounts().get(k) / fcg.totalCounts() * fcg.keySize() *1000 )/1000;
                double nv= (double) Math.round(v/gv *1000)/1000;
                vs[i]= v;
                gvs[i]= gv;
                nvs[i]= nv;
            }
View Full Code Here

Examples of org.fnlp.ml.types.alphabet.StringFeatureAlphabet.keysize()

  public void removeZero(Linear cl) {
    StringFeatureAlphabet feature = (StringFeatureAlphabet) cl.getAlphabetFactory().DefaultFeatureAlphabet();
    float[] weights = cl.getWeights();   
    int c = MyArrays.countNoneZero(weights);
    System.out.println("\n优化前")
    System.out.println("字典索引个数"+feature.keysize());
    System.out.println("字典大小"+cl.getAlphabetFactory().DefaultFeatureAlphabet().size());
    System.out.println("权重长度"+weights.length);
    System.out.println("非零权重"+c)
    boolean freeze = false;
    if (feature.isStopIncrement()) {
View Full Code Here

Examples of org.rocksdb.PlainTableConfig.keySize()

  @Test
  public void keySize() {
    PlainTableConfig plainTableConfig = new PlainTableConfig();
    plainTableConfig.setKeySize(5);
    assertThat(plainTableConfig.keySize()).
        isEqualTo(5);
  }

  @Test
  public void bloomBitsPerKey() {
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.