queryDetails.setQueryDataClassType(_queryData.getClass().getName());
// marshall data buffer
DataOutputBuffer outputBuffer = new DataOutputBuffer();
_queryData.serialize(outputBuffer,new BinaryProtocol());
// and add it to query details
queryDetails.setQueryDataBuffer(new FlexBuffer(outputBuffer.getData(),0,outputBuffer.getLength(),true));
// set shard id
queryDetails.setShardId(split.getShardId());
// allocate a new query status
QueryStatus queryStatus = new QueryStatus();