コード例 #1
0
        public ODataAvroCollectionWriter(ODataAvroOutputContext outputContext, TypeSchema schema)
        {
            Debug.Assert(outputContext != null, "outputContext != null");

            this.outputContext = outputContext;
            this.writerSchema = schema;
            collection = new List<object>();
        }
コード例 #2
0
        public ODataAvroCollectionWriter(ODataAvroOutputContext outputContext, TypeSchema schema)
        {
            Debug.Assert(outputContext != null, "outputContext != null");

            this.outputContext = outputContext;
            this.writerSchema  = schema;
            collection         = new List <object>();
        }
コード例 #3
0
        public ODataAvroParameterWriter(ODataAvroOutputContext outputContext, IEdmOperation operation)
        {
            Debug.Assert(outputContext != null, "outputContext != null");
            Debug.Assert(operation != null, "operation != null");

            this.outputContext = outputContext;
            schema             = (RecordSchema)this.outputContext.AvroWriter.UpdateSchema(null, this.GetTmpType(operation));
            this.record        = new AvroRecord(schema);
        }
コード例 #4
0
        public ODataAvroParameterWriter(ODataAvroOutputContext outputContext, IEdmOperation operation)
        {
            Debug.Assert(outputContext != null, "outputContext != null");
            Debug.Assert(operation != null, "operation != null");

            this.outputContext = outputContext;
            schema = (RecordSchema)this.outputContext.AvroWriter.UpdateSchema(null, this.GetTmpType(operation));
            this.record = new AvroRecord(schema);
        }
コード例 #5
0
        public ODataAvroWriter(ODataAvroOutputContext outputContext, Action<object> writeAction, Schema schema, bool writingFeed)
        {
            Debug.Assert(outputContext != null, "outputContext != null");
            Debug.Assert(writeAction != null, "flushAction != null");

            this.outputContext = outputContext;
            this.writeAction = writeAction;
            this.schema = schema;
            this.writingFeed = writingFeed;
            if (writingFeed)
            {
                this.entityObjectList = new List<AvroRecord>();
            }
        }
コード例 #6
0
ファイル: ODataAvroWriter.cs プロジェクト: zdzislaw/odata.net
        public ODataAvroWriter(ODataAvroOutputContext outputContext, Action <object> writeAction, Schema schema, bool writingFeed)
        {
            Debug.Assert(outputContext != null, "outputContext != null");
            Debug.Assert(writeAction != null, "flushAction != null");

            this.outputContext = outputContext;
            this.writeAction   = writeAction;
            this.schema        = schema;
            this.writingFeed   = writingFeed;
            if (writingFeed)
            {
                this.entityObjectList = new List <AvroRecord>();
            }
        }