kafka.utils.ZKStringSerializer Java Examples

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