|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.exec.UDF
org.apache.hadoop.hive.ql.udf.UDFToBoolean
public class UDFToBoolean
UDFToBoolean.
Constructor Summary | |
---|---|
UDFToBoolean()
|
Method Summary | |
---|---|
BooleanWritable |
evaluate(BigDecimalWritable i)
|
BooleanWritable |
evaluate(ByteWritable i)
Convert from a byte to boolean. |
BooleanWritable |
evaluate(DoubleWritable i)
Convert from a double to boolean. |
BooleanWritable |
evaluate(FloatWritable i)
Convert from a float to boolean. |
BooleanWritable |
evaluate(IntWritable i)
Convert from a integer to boolean. |
BooleanWritable |
evaluate(LongWritable i)
Convert from a long to boolean. |
BooleanWritable |
evaluate(NullWritable i)
Convert a void to boolean. |
BooleanWritable |
evaluate(ShortWritable i)
Convert from a short to boolean. |
BooleanWritable |
evaluate(Text i)
Convert from a string to boolean. |
BooleanWritable |
evaluate(TimestampWritable i)
|
Methods inherited from class org.apache.hadoop.hive.ql.exec.UDF |
---|
getRequiredFiles, getRequiredJars, getResolver, setResolver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDFToBoolean()
Method Detail |
---|
public BooleanWritable evaluate(NullWritable i)
i
- The value of a void type
public BooleanWritable evaluate(ByteWritable i)
i
- The byte value to convert
public BooleanWritable evaluate(ShortWritable i)
i
- The short value to convert
public BooleanWritable evaluate(IntWritable i)
i
- The integer value to convert
public BooleanWritable evaluate(LongWritable i)
i
- The long value to convert
public BooleanWritable evaluate(FloatWritable i)
i
- The float value to convert
public BooleanWritable evaluate(DoubleWritable i)
i
- The double value to convert
public BooleanWritable evaluate(Text i)
i
- The string value to convert
public BooleanWritable evaluate(TimestampWritable i)
public BooleanWritable evaluate(BigDecimalWritable i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |