Examples of LongMap


Examples of com.linkedin.data.template.LongMap

    result = test("{\"key1\": 2, \"key2\": 3}", LongMap.class);
    final Map<String, Long> longFixture = new HashMap<String, Long>();
    longFixture.put("key1", 2L);
    longFixture.put("key2", 3L);
    Assert.assertEquals(result, new LongMap(longFixture));
    Assert.assertSame(result.getClass(), LongMap.class);

    result = test("{\"key1\": 1.1, \"key2\": 2.2}", FloatMap.class);
    final Map<String, Float> floatFixture = new HashMap<String, Float>();
    floatFixture.put("key1", 1.1F);
View Full Code Here

Examples of com.linkedin.data.template.LongMap

      },
      {
        "array", new StringArray(Arrays.asList("a1", "b2", "c3"))
      },
      {
        "map", new LongMap(TestUtil.dataMapFromString("{ \"k1\" : \"v1\" }"))
      }
    };

    for (Object[] row : inputs)
    {
View Full Code Here

Examples of com.xiaoleilu.hutool.bloomFilter.bitMap.LongMap

    switch (machineNum) {
      case BitMap.MACHINE32:
        bm = new IntMap((int) (size / machineNum));
        break;
      case BitMap.MACHINE64:
        bm = new LongMap((int) (size / machineNum));
        break;
      default:
        throw new RuntimeException("Error Machine number!");
    }
  }
View Full Code Here

Examples of org.nlpcn.commons.lang.bloomFilter.bitMap.LongMap

  public Filter(long maxValue, MACHINENUM X) throws Exception {
    this.size = maxValue;
    if (X == MACHINENUM.X86) {
      bm = new IntMap((int) (size / 32));
    } else if (X == MACHINENUM.X64) {
      bm = new LongMap((int) (size / 64));
    } else {
      throw new Exception("unknow math num!");
    }
  }
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.