Builders

In order to isolate its dependencies from users code, this library implements the builder pattern.

So instead of manually creating the Thrift objects for dealing with the Hive Metastore server, you can use the builders.

Each builder reflects the Thrift object’s characteristics that it is building. For more information about the object particularities, you can try finding more information in the hive_metastore.thrift mapping.

You should always call the .build() at the end to get the desired object.

Some objects (like the Thrift Table) are more complex and require other objects as parameters.

To learn more in practice use cases, see Hive Metastore Client examples.