public class UDFToBoolean extends UDF
Constructor and Description |
---|
UDFToBoolean() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.BooleanWritable |
evaluate(ByteWritable i)
Convert from a byte to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(DateWritableV2 d) |
org.apache.hadoop.io.BooleanWritable |
evaluate(DoubleWritable i)
Convert from a double to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.io.FloatWritable i)
Convert from a float to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable i) |
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.io.IntWritable i)
Convert from a integer to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.io.LongWritable i)
Convert from a long to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.io.NullWritable i)
Convert a void to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(ShortWritable i)
Convert from a short to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(org.apache.hadoop.io.Text i)
Convert from a string to boolean.
|
org.apache.hadoop.io.BooleanWritable |
evaluate(TimestampWritableV2 i) |
getRequiredFiles, getRequiredJars, getResolver, setResolver
public org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.io.NullWritable i)
i
- The value of a void typepublic org.apache.hadoop.io.BooleanWritable evaluate(ByteWritable i)
i
- The byte value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(ShortWritable i)
i
- The short value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.io.IntWritable i)
i
- The integer value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.io.LongWritable i)
i
- The long value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.io.FloatWritable i)
i
- The float value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(DoubleWritable i)
i
- The double value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.io.Text i)
i
- The string value to convertpublic org.apache.hadoop.io.BooleanWritable evaluate(DateWritableV2 d)
public org.apache.hadoop.io.BooleanWritable evaluate(TimestampWritableV2 i)
public org.apache.hadoop.io.BooleanWritable evaluate(org.apache.hadoop.hive.serde2.io.HiveDecimalWritable i)
Copyright © 2019 The Apache Software Foundation. All rights reserved.