Java Code Examples for org.apache.flink.util.StringUtils#readNullableString()

The following examples show how to use org.apache.flink.util.StringUtils#readNullableString() . These examples are extracted from open source projects. 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 Project: Flink-CEPplus   File: Path.java    License: Apache License 2.0 6 votes vote down vote up
@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 Project: flink   File: Path.java    License: Apache License 2.0 6 votes vote down vote up
@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 Project: flink   File: Path.java    License: Apache License 2.0 6 votes vote down vote up
@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 Project: Flink-CEPplus   File: StringTaskEvent.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void read(final DataInputView in) throws IOException {
	this.message = StringUtils.readNullableString(in);
}
 
Example 5
Source Project: flink   File: StringTaskEvent.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void read(final DataInputView in) throws IOException {
	this.message = StringUtils.readNullableString(in);
}
 
Example 6
Source Project: flink   File: StringTaskEvent.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void read(final DataInputView in) throws IOException {
	this.message = StringUtils.readNullableString(in);
}