Skip to content

Instantly share code, notes, and snippets.

View rohangarg's full-sized avatar

Rohan Garg rohangarg

View GitHub Profile
@rohangarg
rohangarg / PolyBindTest.java
Last active August 24, 2022 16:14
PolyBindTest
@Test
public void foo()
{
// The test adds following things :
// 1. Adds three property KVs (prop1, goA), (prop2, goB), (prop3, goA)
// 2. Adds two options for Gogo.class in separate modules : GoA and GoB which have binding keys as 'goA' and 'goB'
// 3. Adds three choices for Gogo.class in separate modules which correspond to the three properties
// 4. checks via injector that first and third choice create GoA instances whereas choice second creates GoB instance
props = new Properties();
props.setProperty("prop1", "goA");
@rohangarg
rohangarg / HADOOP-14294.patch
Last active December 3, 2017 18:53
HADOOP-14294
diff --git a/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlConfKeys.java b/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlConfKeys.java
index 790902c6229..afbafd668d8 100644
--- a/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlConfKeys.java
+++ b/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlConfKeys.java
@@ -23,6 +23,10 @@
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configuration.DeprecationDelta;
+import java.util.ArrayList;
+import java.util.HashMap;