Java Code Examples for kafka.utils.ZKStringSerializer#deserialize()

The following examples show how to use kafka.utils.ZKStringSerializer#deserialize() . 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: Resources.java    From DCMonitor with MIT License 5 votes vote down vote up
@Override
public Object deserialize(byte[] bytes) throws ZkMarshallingError {
  if (isZKDirectBytes.get()) {
    return bytes;
  } else {
    return ZKStringSerializer.deserialize(bytes);
  }
}
 
Example 2
Source File: SystemsUtils.java    From incubator-samoa with Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] byteArray) throws ZkMarshallingError {
  return ZKStringSerializer.deserialize(byteArray);
}
 
Example 3
Source File: ZkStringSerializer.java    From Decision with Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] bytes){
    return ZKStringSerializer.deserialize(bytes);
}
 
Example 4
Source File: SystemsUtils.java    From samoa with Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] byteArray) throws ZkMarshallingError {
	return ZKStringSerializer.deserialize(byteArray);
}