public class BinaryEventConverter extends Object implements org.wso2.carbon.databridge.core.EventConverter
| Modifier and Type | Method and Description |
|---|---|
static BinaryEventConverter |
getConverter() |
org.wso2.carbon.databridge.commons.Event |
getEvent(ByteBuffer byteBuffer,
org.wso2.carbon.databridge.core.StreamTypeHolder streamTypeHolder) |
int |
getNumberOfEvents(Object eventBundle) |
int |
getSize(Object eventBundle) |
List<org.wso2.carbon.databridge.commons.Event> |
toEventList(Object eventBundle,
org.wso2.carbon.databridge.core.StreamTypeHolder streamTypeHolder) |
Object[] |
toObjectArray(ByteBuffer byteBuffer,
org.wso2.carbon.databridge.commons.AttributeType[] attributeTypeOrder,
String type) |
Map<String,String> |
toStringMap(ByteBuffer byteBuffer) |
public List<org.wso2.carbon.databridge.commons.Event> toEventList(Object eventBundle, org.wso2.carbon.databridge.core.StreamTypeHolder streamTypeHolder)
toEventList in interface org.wso2.carbon.databridge.core.EventConverterpublic int getSize(Object eventBundle)
getSize in interface org.wso2.carbon.databridge.core.EventConverterpublic int getNumberOfEvents(Object eventBundle)
getNumberOfEvents in interface org.wso2.carbon.databridge.core.EventConverterpublic org.wso2.carbon.databridge.commons.Event getEvent(ByteBuffer byteBuffer, org.wso2.carbon.databridge.core.StreamTypeHolder streamTypeHolder) throws org.wso2.carbon.databridge.commons.exception.MalformedEventException
org.wso2.carbon.databridge.commons.exception.MalformedEventExceptionpublic Object[] toObjectArray(ByteBuffer byteBuffer, org.wso2.carbon.databridge.commons.AttributeType[] attributeTypeOrder, String type)
public Map<String,String> toStringMap(ByteBuffer byteBuffer)
public static BinaryEventConverter getConverter()
Copyright © 2017 WSO2. All rights reserved.