}
}
@Override
public void read(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, BlurResults struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(6);
if (incoming.get(0)) {
struct.totalResults = iprot.readI64();
struct.setTotalResultsIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap _map71 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TMap(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRING, org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
struct.shardInfo = new HashMap<String,Long>(2*_map71.size);
for (int _i72 = 0; _i72 < _map71.size; ++_i72)
{
String _key73; // required
long _val74; // optional
_key73 = iprot.readString();
_val74 = iprot.readI64();
struct.shardInfo.put(_key73, _val74);
}
}
struct.setShardInfoIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list75 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
struct.results = new ArrayList<BlurResult>(_list75.size);
for (int _i76 = 0; _i76 < _list75.size; ++_i76)
{
BlurResult _elem77; // required
_elem77 = new BlurResult();
_elem77.read(iprot);
struct.results.add(_elem77);
}
}
struct.setResultsIsSet(true);
}
if (incoming.get(3)) {
{
org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list78 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.I64, iprot.readI32());
struct.facetCounts = new ArrayList<Long>(_list78.size);
for (int _i79 = 0; _i79 < _list78.size; ++_i79)
{
long _elem80; // required
_elem80 = iprot.readI64();
struct.facetCounts.add(_elem80);
}
}
struct.setFacetCountsIsSet(true);
}
if (incoming.get(4)) {
{
org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList _list81 = new org.apache.blur.thirdparty.thrift_0_9_0.protocol.TList(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TType.STRUCT, iprot.readI32());
struct.exceptions = new ArrayList<BlurException>(_list81.size);
for (int _i82 = 0; _i82 < _list81.size; ++_i82)
{
BlurException _elem83; // required
_elem83 = new BlurException();