public Builder withPartition(final Map<String, String> partKVs) {
      this.partitionKVs = partKVs;
      return this;
    }
This class should be used to build {@link WriteEntity}. It follows builder
pattern, letting you build your {@link WriteEntity} with whatever level of
detail you want.
hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/transfer/WriteEntity.java