Examples of HLLType


Examples of net.agkn.hll.HLLType

     *         the HLL. This cannot be <code>null</code>.
     * @return the populated HLL. This will never be <code>null</code>.
     */
    public static HLL generateRandomHLL(final Random random) {
        final int randomTypeInt = random.nextInt(HLLType.values().length);
        final HLLType type;
        switch(randomTypeInt) {
            case 0:
                type = HLLType.EMPTY;
                break;
            case 1:
View Full Code Here

Examples of net.agkn.hll.HLLType

    /* (non-Javadoc)
     * @see net.agkn.hll.serialization.ISchemaVersion#writeMetadata(byte[], IHLLMetadata)
     */
    @Override
    public void writeMetadata(final byte[] bytes, final IHLLMetadata metadata) {
        final HLLType type = metadata.HLLType();
        final int typeOrdinal = getOrdinal(type);

        final int explicitCutoffValue;
        if(metadata.explicitOff()) {
            explicitCutoffValue = EXPLICIT_OFF;
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.