@Test public void testHashAllotRule() { HashAllotRule hashAllotRule = new HashAllotRule(); Assert.assertEquals(hashAllotRule.getFieldIndexes(), 0); Assert.assertEquals(hashAllotRule.getType(), BaseAllotRule.AllotType.HASH); Assert.assertTrue(hashAllotRule.getHashFunction() instanceof HashFunction); Assert.assertEquals(hashAllotRule.getCapacity(), 10000000); hashAllotRule = new HashAllotRule(new int[]{0}, 16, 1000); Assert.assertEquals(hashAllotRule.getCapacity(), 1000); }
public HashAllotRule() { this(new int[]{0}); }
HashAllotRule extends BaseAllotRule { public HashAllotRule() { this(new int[]{0}); } }
HashAllotRule extends BaseAllotRule { public HashAllotRule() { this(new int[]{0}); } HashAllotRule();  HashAllotRule(int[] fieldIndexes);  HashAllotRule(int[] fieldIndexes, int partitions);  HashAllotRule(int[] fieldIndexes, int partitions, int capacity);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction, int capacity); }
HashAllotRule extends BaseAllotRule { public HashAllotRule() { this(new int[]{0}); } HashAllotRule();  HashAllotRule(int[] fieldIndexes);  HashAllotRule(int[] fieldIndexes, int partitions);  HashAllotRule(int[] fieldIndexes, int partitions, int capacity);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction, int capacity); int[] getFieldIndexes(); HashFunction getHashFunction(); @Override Type getType(); }
HashAllotRule extends BaseAllotRule { public HashAllotRule() { this(new int[]{0}); } HashAllotRule();  HashAllotRule(int[] fieldIndexes);  HashAllotRule(int[] fieldIndexes, int partitions);  HashAllotRule(int[] fieldIndexes, int partitions, int capacity);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction);  HashAllotRule(int[] fieldIndexes, HashFunction hashFunction, int capacity); int[] getFieldIndexes(); HashFunction getHashFunction(); @Override Type getType(); static final int HASH_PARTITIONS; }