if (sc != null)
ByteBufferUtil.write(sc, dos);
if (version < MessagingService.VERSION_12)
{
FBUtilities.serialize(new TSerializer(new TBinaryProtocol.Factory()), asSlicePredicate(sliceCommand.predicate), dos);
}
else
{
IDiskAtomFilter.Serializer.instance.serialize(sliceCommand.predicate, dos, version);
}
if (version >= MessagingService.VERSION_11)
{
if (sliceCommand.row_filter == null)
{
dos.writeInt(0);
}
else
{
dos.writeInt(sliceCommand.row_filter.size());
for (IndexExpression expr : sliceCommand.row_filter)
{
if (version < MessagingService.VERSION_12)
{
FBUtilities.serialize(new TSerializer(new TBinaryProtocol.Factory()), expr, dos);
}
else
{
ByteBufferUtil.writeWithShortLength(expr.column_name, dos);
dos.writeInt(expr.op.getValue());