Example usage for org.apache.spark.unsafe.types UTF8String EMPTY_UTF8

List of usage examples for org.apache.spark.unsafe.types UTF8String EMPTY_UTF8

Introduction

In this page you can find the example usage for org.apache.spark.unsafe.types UTF8String EMPTY_UTF8.

Prototype

UTF8String EMPTY_UTF8

To view the source code for org.apache.spark.unsafe.types UTF8String EMPTY_UTF8.

Click Source Link

Usage

From source file:com.hurence.logisland.connect.source.KafkaConnectStreamSource.java

License:Apache License

private UTF8String toUTFString(Object o) {
    if (o != null) {
        return UTF8String.fromString(o.toString());
    }//from  ww  w.j  a v  a2 s .c o  m
    return UTF8String.EMPTY_UTF8;
}