Classes | Namespaces | Typedefs | Functions

Decoder.hh File Reference

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. More...

#include <stdint.h>
#include <string>
#include <vector>
#include "ValidSchema.hh"
#include "Stream.hh"
#include <boost/shared_ptr.hpp>

Go to the source code of this file.

Classes

class  avro::Decoder
class  avro::ResolvingDecoder

Namespaces

namespace  avro
 

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.


Typedefs

typedef boost::shared_ptr
< Decoder > 
avro::DecoderPtr
typedef boost::shared_ptr
< ResolvingDecoder > 
avro::ResolvingDecoderPtr

Functions

DecoderPtr avro::binaryDecoder ()
 Returns an decoder that can decode binary Avro standard.
DecoderPtr avro::validatingDecoder (const ValidSchema &schema, const DecoderPtr &base)
 Returns an decoder that validates sequence of calls to an underlying Decoder against the given schema.
DecoderPtr avro::jsonDecoder (const ValidSchema &schema)
 Returns an decoder that can decode Avro standard for JSON.
ResolvingDecoderPtr avro::resolvingDecoder (const ValidSchema &writer, const ValidSchema &reader, const DecoderPtr &base)
 Returns a decoder that decodes avro data from base written according to writerSchema and resolves against readerSchema.

Detailed Description

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.

See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Low level support for decoding avro values. This class has two types of funtions. One type of functions support decoding of leaf values (for example, decodeLong and decodeString). These functions have analogs in Encoder.

The other type of functions support decoding of maps and arrays. These functions are arrayStart, startItem, and arrayEnd (and similar functions for maps).