forked from apache/samza
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAMZA-1610: Implementation of remote table provider
Please see commit messages for detailed descriptions. Author: Peng Du <[email protected]> Reviewers: Jagadish <[email protected]>, Wei Song <[email protected]> Closes apache#432 from pdu-mn1/remote-table-0222
1 parent
1971d59
commit 2be7061
Showing
26 changed files
with
1,581 additions
and
415 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
samza-core/src/main/java/org/apache/samza/table/remote/CreditFunction.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 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.samza.table.remote; | ||
|
||
import java.io.Serializable; | ||
import java.util.function.Function; | ||
|
||
import org.apache.samza.operators.KV; | ||
|
||
|
||
/** | ||
* Function interface for providing rate limiting credits for each table record. | ||
* This interface allows callers to pass in lambda expressions which are otherwise | ||
* non-serializable as-is. | ||
* @param <K> the type of the key | ||
* @param <V> the type of the value | ||
*/ | ||
public interface CreditFunction<K, V> extends Function<KV<K, V>, Integer>, Serializable { | ||
} |
Oops, something went wrong.