Examples of BinaryProtocol


Examples of org.commoncrawl.rpc.BinaryProtocol

      LOG.info(_fqName + " QueryId:" + rpcContext.getInput().getCommonInfo().getQueryId() + " DeSerializing Query Data");
      // allocate an input stream 
      DataInputBuffer inputStream = new DataInputBuffer();
      inputStream.reset(rpcContext.getInput().getQueryDataBuffer().getReadOnlyBytes(),0,rpcContext.getInput().getQueryDataBuffer().getCount());
      // and deserialize into the structure
      queryData.deserialize(inputStream,new BinaryProtocol());
      LOG.info(_fqName + " QueryId:" + rpcContext.getInput().getCommonInfo().getQueryId() + " Allocating QueryOp Object of type:" + queryObjectType);
      // allocate query object
      Query queryObject = createQueryObjectGivenType(queryObjectType,rpcContext.getInput().getShardId(),queryData);
      LOG.info(_fqName + " QueryId:" + rpcContext.getInput().getCommonInfo().getQueryId() + " Initializing QueryObject");
      // initialize query
View Full Code Here

Examples of org.commoncrawl.rpc.BinaryProtocol

      queryDetails.setQueryClassType(getClass().getName());
      // set data type
      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());
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.