-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hacking new serialization with Steve at techorama
- Loading branch information
Showing
12 changed files
with
180 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Elastic.Ingest.Elasticsearch/ElasticsearchChannelBase.Serialization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Licensed to Elasticsearch B.V under one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
using System; | ||
using System.Buffers; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text.Json; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Elastic.Channels; | ||
using Elastic.Channels.Diagnostics; | ||
using Elastic.Ingest.Elasticsearch.DataStreams; | ||
using Elastic.Ingest.Elasticsearch.Indices; | ||
using Elastic.Ingest.Elasticsearch.Serialization; | ||
using Elastic.Ingest.Transport; | ||
using Elastic.Transport; | ||
using Elastic.Transport.Products.Elasticsearch; | ||
using static Elastic.Ingest.Elasticsearch.ElasticsearchChannelStatics; | ||
|
||
namespace Elastic.Ingest.Elasticsearch; | ||
|
||
/// <summary> | ||
/// An abstract base class for both <see cref="DataStreamChannel{TEvent}"/> and <see cref="IndexChannel{TEvent}"/> | ||
/// <para>Coordinates most of the sending to- and bootstrapping of Elasticsearch</para> | ||
/// </summary> | ||
public abstract partial class ElasticsearchChannelBase<TEvent, TChannelOptions> | ||
: TransportChannelBase<TChannelOptions, TEvent, BulkResponse, BulkResponseItem> | ||
where TChannelOptions : ElasticsearchChannelOptionsBase<TEvent> | ||
{ | ||
private Task SerializeHeaderAsync(Stream stream, ref readonly BulkHeader header, JsonSerializerOptions serializerOptions, CancellationToken ctx) => | ||
throw new NotImplementedException(); | ||
|
||
private Task SerializePlainIndexHeaderAsync(Stream stream, CancellationToken ctx) => | ||
throw new NotImplementedException(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.