public THdfsPartition toThrift() { List<TExpr> thriftExprs = Expr.treesToThrift(getPartitionValues()); return new THdfsPartition( (byte) fileFormatDescriptor.getLineDelim(), (byte) fileFormatDescriptor.getFieldDelim(), (byte) fileFormatDescriptor.getCollectionDelim(), (byte) fileFormatDescriptor.getMapKeyDelim(), (byte) fileFormatDescriptor.getEscapeChar(), fileFormatDescriptor.getFileFormat().toThrift(), thriftExprs, fileFormatDescriptor.getBlockSize(), fileFormatDescriptor.getCompression()); }