public Builder withTableObject(Table table) {
      this.tableObject = table;
      this.isPartitioned = tableObject.getPartitionKeys() != null
          && !tableObject.getPartitionKeys().isEmpty();
      return this;
    }
Specify the table object since sometimes no connections
to the metastore will be opened.
@param table table object.
@return builder
streaming/src/java/org/apache/hive/streaming/HiveStreamingConnection.java