Skip to content

Commit

Permalink
Add javadoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hayes committed Nov 5, 2013
1 parent 2635856 commit e198a6b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/java/datafu/pig/sampling/ReservoirSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
* a uniformly random sample of a given size.
*
* <p>
* This is similar to {@see SimpleRandomSample}, however it is guaranteed to produce
* This is similar to {@link SimpleRandomSample}, however it is guaranteed to produce
* a sample of the given size. This comes at the cost of scalability.
* {@see SimpleRandomSample} produces a sample of the desired size with likelihood of 99.99%,
* {@link SimpleRandomSample} produces a sample of the desired size with likelihood of 99.99%,
* while using less internal storage. ReservoirSample on the other hand uses internal storage
* with size equaling the desired sample to guarantee the exact sample size.
* </p>
Expand Down
2 changes: 1 addition & 1 deletion src/java/datafu/pig/stats/QuantileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.ArrayList;

/**
* Methods used by {@see Quantile}.
* Methods used by {@link Quantile}.
*
* @author "Matthew Hayes <mhayes@linkedin.com>"
*
Expand Down
7 changes: 1 addition & 6 deletions src/java/datafu/pig/util/Assert.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@

package datafu.pig.util;

import java.io.IOException;

import org.apache.pig.FilterFunc;
import org.apache.pig.data.Tuple;

/**
* Assert has been renamed to AssertUDF.
*
* This class is provided for backward compatibility.
*
* @deprecated Use {@link AssertUDF()} instead.
* @deprecated Use {@link AssertUDF} instead.
*/
@Deprecated
public class Assert extends AssertUDF
Expand Down
5 changes: 0 additions & 5 deletions src/java/datafu/pig/util/Coalesce.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@
package datafu.pig.util;

import java.io.IOException;
import java.util.Map;
import java.util.Properties;

import org.apache.pig.EvalFunc;
import org.apache.pig.data.DataType;
import org.apache.pig.data.Tuple;
import org.apache.pig.impl.logicalLayer.schema.Schema;
import org.apache.pig.impl.logicalLayer.schema.Schema.FieldSchema;
import org.apache.pig.impl.util.UDFContext;

/**
* Returns the first non-null value from a tuple, just like {@link <a href="http://msdn.microsoft.com/en-us/library/ms190349.aspx" target="_blank">COALESCE</a>} in SQL.
Expand All @@ -52,7 +48,6 @@
*/
public class Coalesce extends AliasableEvalFunc<Object>
{
private String instanceName;
private boolean strict;

private static String STRICT_OPTION = "strict";
Expand Down
7 changes: 1 addition & 6 deletions src/java/datafu/pig/util/In.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package datafu.pig.util;

import java.io.IOException;

import org.apache.pig.FilterFunc;
import org.apache.pig.data.Tuple;

/**
* In has been renamed to InUDF.
*
* This class is provided for backward compatibility.
*
* @deprecated Use {@link InUDF()} instead.
* @deprecated Use {@link InUDF} instead.
*/
@Deprecated
public class In extends InUDF
Expand Down
2 changes: 2 additions & 0 deletions src/java/datafu/pig/util/SimpleEvalFunc.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ private String _method_signature()
@SuppressWarnings("unchecked")
public T exec(Tuple input) throws IOException
{
@SuppressWarnings("rawtypes")
Class pvec[] = m.getParameterTypes();

if (input == null || input.size() == 0)
Expand Down Expand Up @@ -183,6 +184,7 @@ public Schema outputSchema(Schema inputSchema)
}

// check correct number of arguments
@SuppressWarnings("rawtypes")
Class parameterTypes[] = m.getParameterTypes();
if (inputSchema.size() != parameterTypes.length) {
throw new IllegalArgumentException(String.format("%s: got %d arguments, expected %d.",
Expand Down

0 comments on commit e198a6b

Please sign in to comment.