Package io.airlift.slice

Examples of io.airlift.slice.SliceInput.readInt()


    @Override
    public void deserialize(Block block, int index, MaxByState state)
    {
        SliceInput input = block.getSlice(index, 0, block.getLength(0)).getInput();
        int keyLength = input.readInt();
        int valueLength = input.readInt();
        state.setKey(null);
        state.setValue(null);
        if (keyLength > 0) {
            state.setKey(toBlock(state.getKeyType(), input, keyLength));
View Full Code Here


    @Override
    public void deserialize(Block block, int index, MaxByState state)
    {
        SliceInput input = block.getSlice(index, 0, block.getLength(0)).getInput();
        int keyLength = input.readInt();
        int valueLength = input.readInt();
        state.setKey(null);
        state.setValue(null);
        if (keyLength > 0) {
            state.setKey(toBlock(state.getKeyType(), input, keyLength));
        }
View Full Code Here

    public static FeatureUnitNormalizer deserialize(byte[] modelData)
    {
        SliceInput input = Slices.wrappedBuffer(modelData).getInput();
        FeatureUnitNormalizer model = new FeatureUnitNormalizer();
        while (input.isReadable()) {
            int key = input.readInt();
            model.mins.put(key, input.readDouble());
            model.maxs.put(key, input.readDouble());
        }
        return model;
    }
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.