有一个专栏:http://blog.csdn.net/luonanqin/article/details/9900295
- public class PersonMap
- {
- public static void main(String[] args)
- {
- EPServiceProvider epService = EPServiceProviderManager.getDefaultProvider();
- EPAdministrator admin = epService.getEPAdministrator();
-
-
- Map<String,Object> person = new HashMap<String,Object>();
- person.put("name", String.class);
- person.put("age", int.class);
- person.put("children", List.class);
- person.put("phones", Map.class);
-
-
- admin.getConfiguration().addEventType("Person", person);
- }
- }
专门用来从一个流(Stream)中截取二进制信息,是一个面向底层的很高级的技术。