Java Code Examples for org.apache.flink.util.StringUtils#readNullableString()
The following examples show how to use
org.apache.flink.util.StringUtils#readNullableString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Path.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override public void read(DataInputView in) throws IOException { final boolean isNotNull = in.readBoolean(); if (isNotNull) { final String scheme = StringUtils.readNullableString(in); final String userInfo = StringUtils.readNullableString(in); final String host = StringUtils.readNullableString(in); final int port = in.readInt(); final String path = StringUtils.readNullableString(in); final String query = StringUtils.readNullableString(in); final String fragment = StringUtils.readNullableString(in); try { uri = new URI(scheme, userInfo, host, port, path, query, fragment); } catch (URISyntaxException e) { throw new IOException("Error reconstructing URI", e); } } }
Example 2
Source File: Path.java From flink with Apache License 2.0 | 6 votes |
@Override public void read(DataInputView in) throws IOException { final boolean isNotNull = in.readBoolean(); if (isNotNull) { final String scheme = StringUtils.readNullableString(in); final String userInfo = StringUtils.readNullableString(in); final String host = StringUtils.readNullableString(in); final int port = in.readInt(); final String path = StringUtils.readNullableString(in); final String query = StringUtils.readNullableString(in); final String fragment = StringUtils.readNullableString(in); try { uri = new URI(scheme, userInfo, host, port, path, query, fragment); } catch (URISyntaxException e) { throw new IOException("Error reconstructing URI", e); } } }
Example 3
Source File: Path.java From flink with Apache License 2.0 | 6 votes |
@Override public void read(DataInputView in) throws IOException { final boolean isNotNull = in.readBoolean(); if (isNotNull) { final String scheme = StringUtils.readNullableString(in); final String userInfo = StringUtils.readNullableString(in); final String host = StringUtils.readNullableString(in); final int port = in.readInt(); final String path = StringUtils.readNullableString(in); final String query = StringUtils.readNullableString(in); final String fragment = StringUtils.readNullableString(in); try { uri = new URI(scheme, userInfo, host, port, path, query, fragment); } catch (URISyntaxException e) { throw new IOException("Error reconstructing URI", e); } } }
Example 4
Source File: StringTaskEvent.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void read(final DataInputView in) throws IOException { this.message = StringUtils.readNullableString(in); }
Example 5
Source File: StringTaskEvent.java From flink with Apache License 2.0 | 4 votes |
@Override public void read(final DataInputView in) throws IOException { this.message = StringUtils.readNullableString(in); }
Example 6
Source File: StringTaskEvent.java From flink with Apache License 2.0 | 4 votes |
@Override public void read(final DataInputView in) throws IOException { this.message = StringUtils.readNullableString(in); }