fs.writeString(clusterName);
fs.writeString(databaseName);
fs.writeString(tableName.toUpperCase());
fs.writeBoolean(isReplicated);
if (!isReplicated) {
fs.writeArray(partitionIds);
fs.writeInt(numPartitions);
}
final BBContainer container = fs.getBBContainer();
container.b().position(4);
container.b().putInt(container.b().remaining() - 4);