Examples of newState()


Examples of io.crate.operation.aggregation.AggregationFunction.newState()

    @Test
    public void testLongSerialization() throws Exception {
        FunctionIdent fi = new FunctionIdent("collect_set", ImmutableList.<DataType>of(DataTypes.LONG));
        AggregationFunction impl = (AggregationFunction) functions.get(fi);
        AggregationState state = impl.newState();

        BytesStreamOutput streamOutput = new BytesStreamOutput();
        state.writeTo(streamOutput);

        AggregationState newState = impl.newState();
View Full Code Here

Examples of io.crate.operation.aggregation.AggregationFunction.newState()

        AggregationState state = impl.newState();

        BytesStreamOutput streamOutput = new BytesStreamOutput();
        state.writeTo(streamOutput);

        AggregationState newState = impl.newState();
        newState.readFrom(new BytesStreamInput(streamOutput.bytes()));
        assertEquals(state.value(), newState.value());
    }

    @Test
View Full Code Here

Examples of org.nimbustools.api.services.rm.StateChangeCallback.newState()

                    final StateChangeCallback scc =
                            (StateChangeCallback) this.stateListeners.get(i);
                   
                    if (scc != null) {
                        final State stateRepr = this.dataConvert.getState(this);
                        scc.newState(stateRepr);
                    }

                } catch (Throwable t) {
                    final String err = "Problem with asynchronous state " +
                            "change notification: " + t.getMessage();
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.