com.senseidb.search.node.impl
Class JSONDataSerializer

java.lang.Object
  extended by com.senseidb.search.node.impl.JSONDataSerializer
All Implemented Interfaces:
proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>

public class JSONDataSerializer
extends Object
implements proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>


Constructor Summary
JSONDataSerializer(SenseiSchema schema)
           
 
Method Summary
 org.json.JSONObject fromBytes(byte[] data)
           
 long getUid(org.json.JSONObject data)
           
 boolean isDelete(org.json.JSONObject obj)
           
 boolean isSkip(org.json.JSONObject obj)
           
 byte[] toBytes(org.json.JSONObject data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONDataSerializer

public JSONDataSerializer(SenseiSchema schema)
Method Detail

getUid

public long getUid(org.json.JSONObject data)
Specified by:
getUid in interface proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>

toBytes

public byte[] toBytes(org.json.JSONObject data)
Specified by:
toBytes in interface proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>

fromBytes

public org.json.JSONObject fromBytes(byte[] data)
Specified by:
fromBytes in interface proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>

isDelete

public boolean isDelete(org.json.JSONObject obj)
Specified by:
isDelete in interface proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>

isSkip

public boolean isSkip(org.json.JSONObject obj)
Specified by:
isSkip in interface proj.zoie.store.ZoieStoreSerializer<org.json.JSONObject>


Copyright © 2010-2012. All Rights Reserved.