Examples of nextField()


Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.nextField()

    //The id
    @Nullable final DocId id;
    if ( fieldName.equals( PROPERTY_ID ) ) {
      wrapper.nextValue();
      id = new DocId( wrapper.getText() );
      wrapper.nextField( PROPERTY_KEY );
    }else {
      id = null;
    }

    //The key
View Full Code Here

Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.nextField()

    //The key
    K key = ( K ) keySerializer.deserialize( parser );

    //The value
    wrapper.nextField( PROPERTY_VALUE );

    @Nullable
    V value = ( V ) valueSerializer.deserialize( parser );

    //The doc - if available
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

        TProtocolReader reader = new TProtocolReader(in);
        reader.readStructBegin();
        Object results = null;
        Exception exception = null;
        while (reader.nextField()) {
            if (reader.getFieldId() == 0) {
                results = reader.readField(successCodec);
            }
            else {
                ThriftCodec<Object> exceptionCodec = exceptionCodecs.get(reader.getFieldId());
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

            TProtocolReader reader = new TProtocolReader(in);

            // Map incoming arguments from the ID passed in on the wire to the position in the
            // java argument list we expect to see a parameter with that ID.
            reader.readStructBegin();
            while (reader.nextField()) {
                short fieldId = reader.getFieldId();

                ThriftCodec<?> codec = parameterCodecs.get(fieldId);
                if (codec == null) {
                    // unknown field
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

        TProtocolReader reader = new TProtocolReader(in);
        reader.readStructBegin();
        Object results = null;
        Exception exception = null;
        while (reader.nextField()) {
            if (reader.getFieldId() == 0) {
                results = reader.readField(successCodec);
            }
            else {
                ThriftCodec<Object> exceptionCodec = exceptionCodecs.get(reader.getFieldId());
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

    {
        TProtocolReader reader = new TProtocolReader(protocol);
        reader.readStructBegin();

        Map<Short, Object> data = new HashMap<>(metadata.getFields().size());
        while (reader.nextField()) {
            short fieldId = reader.getFieldId();

            // do we have a codec for this field
            ThriftCodec<?> codec = fields.get(fieldId);
            if (codec == null) {
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

            TProtocolReader reader = new TProtocolReader(in);

            // Map incoming arguments from the ID passed in on the wire to the position in the
            // java argument list we expect to see a parameter with that ID.
            reader.readStructBegin();
            while (reader.nextField()) {
                short fieldId = reader.getFieldId();

                ThriftCodec<?> codec = parameterCodecs.get(fieldId);
                if (codec == null) {
                    // unknown field
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

    {
        TProtocolReader reader = new TProtocolReader(in);
        reader.readStructBegin();
        Object results = null;
        Exception exception = null;
        while (reader.nextField()) {
            if (reader.getFieldId() == 0) {
                results = reader.readField(successCodec);
            }
            else {
                ThriftCodec<Object> exceptionCodec = exceptionCodecs.get(reader.getFieldId());
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

        UnionField field = new UnionField();
        reader.readStructBegin();

        boolean consumed = false;
        while(reader.nextField()) {
            Preconditions.checkState(!consumed, "already consumed");

            field._id = reader.getFieldId();
            switch (field._id) {
            case 1:
View Full Code Here

Examples of com.facebook.swift.codec.internal.TProtocolReader.nextField()

        String message = null;
        int type = 0;

        reader.readStructBegin();

        while (reader.nextField()) {
            switch (reader.getFieldId()) {
                case 1:
                    message = reader.readStringField();
                    break;
                case 2:
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.