public void writeMapBegin(TMap map) throws TException {
if(map.keyType == TType.STRUCT ||
map.keyType == TType.MAP ||
map.keyType == TType.LIST ||
map.keyType == TType.SET) {
throw new TException("Not implemented: nested structures");
}
if(map.valueType == TType.STRUCT ||
map.valueType == TType.MAP ||
map.valueType == TType.LIST ||
map.valueType == TType.SET) {
throw new TException("Not implemented: nested structures");
}
separator_ = secondarySeparatorChar_;
}