|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ebay.erl.mobius.util.Util
public class Util
This product is licensed under the Apache License, Version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0. This product contains portions derived from Apache hadoop which is licensed under the Apache License, Version 2.0, available at http://hadoop.apache.org. © 2007 – 2012 eBay Inc., Evan Chiu, Woody Zhou, Neel Sundaresan
Field Summary | |
---|---|
static java.lang.String[] |
ZERO_SIZE_STRING_ARRAY
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | ||
---|---|---|
static
|
close(java.util.Iterator<E> it)
|
|
static java.lang.Iterable<Tuple> |
crossProduct(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.Reporter reporter,
java.lang.Iterable<Tuple>... datasets)
Perform cross product for the given datasets |
|
static java.lang.Iterable<Tuple> |
crossProduct(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.Reporter reporter,
java.util.List<BigTupleList> datasets)
|
|
boolean |
equalContent(java.io.File f1,
java.io.File f2)
|
|
static int |
findBoundary(java.lang.Object[] sorted,
java.lang.Object x,
java.util.Comparator<java.lang.Object> comparator,
boolean isUpper)
|
|
static
|
findByType(java.util.List<? super T> list,
java.lang.Class<T> type)
|
|
static
|
findByType(U[] list,
java.lang.Class<T> type)
|
|
static int |
findLowerBound(java.lang.Object[] sorted,
java.lang.Object x,
java.util.Comparator<java.lang.Object> comparator)
|
|
static int |
findRepeatTimes(java.lang.Object[] sorted,
java.lang.Object x,
java.util.Comparator<java.lang.Object> comparator)
|
|
static int |
findUpperBound(java.lang.Object[] sorted,
java.lang.Object x,
java.util.Comparator<java.lang.Object> comparator)
|
|
static java.lang.Class<?> |
getClass(java.lang.String fullClassName)
Get the Class reference by the given
fullClassName . |
|
static java.lang.Iterable<Tuple> |
inMemoryCrossProduct(java.lang.Iterable<Tuple>... datasets)
|
|
static org.apache.hadoop.conf.Configuration |
merge(org.apache.hadoop.conf.Configuration... confs)
Merge the given confs into ones. |
|
static java.lang.Object |
newInstance(java.lang.String fullClassName)
Get the instance by the given fullClassName . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] ZERO_SIZE_STRING_ARRAY
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.Class<?> getClass(java.lang.String fullClassName)
Class
reference by the given
fullClassName
.
public static java.lang.Object newInstance(java.lang.String fullClassName)
fullClassName
.
public static java.lang.Iterable<Tuple> crossProduct(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.Reporter reporter, java.util.List<BigTupleList> datasets) throws java.io.IOException
java.io.IOException
public static java.lang.Iterable<Tuple> crossProduct(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.Reporter reporter, java.lang.Iterable<Tuple>... datasets) throws java.io.IOException
datasets
java.io.IOException
public static java.lang.Iterable<Tuple> inMemoryCrossProduct(java.lang.Iterable<Tuple>... datasets)
public static org.apache.hadoop.conf.Configuration merge(org.apache.hadoop.conf.Configuration... confs)
confs
into ones.
The value from same property key in the later
configuration objects in the confs
will override the previous one.
confs
list.public boolean equalContent(java.io.File f1, java.io.File f2) throws java.io.IOException
java.io.IOException
public static int findBoundary(java.lang.Object[] sorted, java.lang.Object x, java.util.Comparator<java.lang.Object> comparator, boolean isUpper)
public static int findUpperBound(java.lang.Object[] sorted, java.lang.Object x, java.util.Comparator<java.lang.Object> comparator)
public static int findLowerBound(java.lang.Object[] sorted, java.lang.Object x, java.util.Comparator<java.lang.Object> comparator)
public static int findRepeatTimes(java.lang.Object[] sorted, java.lang.Object x, java.util.Comparator<java.lang.Object> comparator)
public static <T> java.util.List<T> findByType(java.util.List<? super T> list, java.lang.Class<T> type)
public static <U,T extends U> T[] findByType(U[] list, java.lang.Class<T> type)
public static <E> void close(java.util.Iterator<E> it) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |