forked from yahoo/maha
-
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.
Add leader & follower logic in its own namespace
- Loading branch information
1 parent
92c961f
commit 3862ff2
Showing
16 changed files
with
488 additions
and
238 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
.../yahoo/maha/maha_druid_lookups/query/lookup/JDBCLookupExtractorWithLeaderAndFollower.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,24 @@ | ||
// Copyright 2017, Yahoo Holdings Inc. | ||
// Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms. | ||
package com.yahoo.maha.maha_druid_lookups.query.lookup; | ||
|
||
import com.metamx.common.logger.Logger; | ||
import com.yahoo.maha.maha_druid_lookups.query.lookup.namespace.JDBCExtractionNamespace; | ||
import com.yahoo.maha.maha_druid_lookups.server.lookup.namespace.LookupService; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class JDBCLookupExtractorWithLeaderAndFollower<U extends List<String>> extends OnlineDatastoreLookupExtractor<U> { | ||
private static final Logger LOG = new Logger(MethodHandles.lookup().lookupClass()); | ||
|
||
public JDBCLookupExtractorWithLeaderAndFollower(JDBCExtractionNamespace extractionNamespace, Map<String, U> map, LookupService lookupService) { | ||
super(extractionNamespace, map, lookupService); | ||
} | ||
|
||
@Override | ||
protected Logger LOGGER() { | ||
return LOG; | ||
} | ||
} |
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
Oops, something went wrong.