Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.4.0, 3.3.5
Description
guava Lists class provide some wrappers to java ArrayList and LinkedList.
Replacing the method calls throughout the code can be invasive because guava offers some APIs that do not exist in java util. This Jira is the task of implementing those missing APIs in hadoop common in a step toward getting rid of guava.
- create a wrapper class org.apache.hadoop.util.unguava.ListsĀ
- implement the following interfaces in Lists:
- public static <E> ArrayList<E> newArrayList()
- public static <E> ArrayList<E> newArrayList(E... elements)
- public static <E> ArrayList<E> newArrayList(Iterable<? extends E> elements)
- public static <E> ArrayList<E> newArrayList(Iterator<? extends E> elements)
- public static <E> ArrayList<E> newArrayListWithCapacity(int initialArraySize)
- public static <E> LinkedList<E> newLinkedList()
- public static <E> LinkedList<E> newLinkedList(Iterable<? extends E> elements)
- public static <E> List<E> asList(@Nullable E first, E[] rest)
Attachments
Issue Links
- is depended upon by
-
HADOOP-17409 Remove S3Guard - no longer needed
- Resolved
- is part of
-
HADOOP-17108 Create Classes to wrap Guava code replacement
- Open
- is required by
-
HADOOP-17114 Replace Guava initialization of Lists.newArrayList
- Resolved
- relates to
-
HADOOP-17743 Replace Guava Lists usage by Hadoop's own Lists in hadoop-common, hadoop-tools and cloud-storage projects
- Resolved
-
HDFS-16054 Replace Guava Lists usage by Hadoop's own Lists in hadoop-hdfs-project
- Resolved
-
MAPREDUCE-7350 Replace Guava Lists usage by Hadoop's own Lists in hadoop-mapreduce-project
- Resolved
-
YARN-10805 Replace Guava Lists usage by Hadoop's own Lists in hadoop-yarn-project
- Resolved
-
HADOOP-17753 Keep restrict-imports-enforcer-rule for Guava Lists in hadoop-main pom
- Resolved
- links to