-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
NONE
format for key-less streams (#6349)
* feat: add NONE format fixes: #6221 Introduce a `NONE` format, used to indicate the key data, in key-less streams, should not be deserialized. Co-authored-by: Andy Coates <[email protected]>
- Loading branch information
1 parent
0d60246
commit 25bb352
Showing
21 changed files
with
1,263 additions
and
18 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
36 changes: 36 additions & 0 deletions
36
...b-functional-tests/src/main/java/io/confluent/ksql/test/serde/none/NoneSerdeSupplier.java
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,36 @@ | ||
/* | ||
* Copyright 2020 Confluent Inc. | ||
* | ||
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
package io.confluent.ksql.test.serde.none; | ||
|
||
import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient; | ||
import io.confluent.ksql.serde.voids.KsqlVoidSerde; | ||
import io.confluent.ksql.test.serde.SerdeSupplier; | ||
import org.apache.kafka.common.serialization.Deserializer; | ||
import org.apache.kafka.common.serialization.Serializer; | ||
|
||
public class NoneSerdeSupplier implements SerdeSupplier<Void> { | ||
|
||
@Override | ||
public Serializer<Void> getSerializer(final SchemaRegistryClient schemaRegistryClient) { | ||
return new KsqlVoidSerde<Void>().serializer(); | ||
} | ||
|
||
@Override | ||
public Deserializer<Void> getDeserializer(final SchemaRegistryClient schemaRegistryClient) { | ||
return new KsqlVoidSerde<Void>().deserializer(); | ||
} | ||
} |
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.