h2o-py/h2o/h2o.py
def import_hive_table(database=None, table=None, partitions=None, allow_multi_format=False):
    """
    Import Hive table to H2OFrame in memory.

    Make sure to start H2O with Hive on classpath. Uses hive-site.xml on classpath to connect to Hive.

    :param database: Name of Hive database (default database will be used by default)
    :param table: name of Hive table to import
    :param partitions: a list of lists of strings - partition key column values of partitions you want to import.
    :param allow_multi_format: enable import of partitioned tables with different storage formats used. WARNING:
        this may fail on out-of-memory for tables with a large number of small partitions.

    :returns: an :class:`H2OFrame` containing data of the specified Hive table.

    :examples:
        >>> my_citibike_data = h2o.import_hive_table("default", "table", [["2017", "01"], ["2017", "02"]])
    """    
    assert_is_type(database, str, None)
    assert_is_type(table, str)
    assert_is_type(partitions, [[str]], None)
    p = { "database": database, "table": table, "partitions": partitions, "allow_multi_format": allow_multi_format }
    j = H2OJob(api("POST /3/ImportHiveTable", data=p), "Import Hive Table").poll()
    return get_frame(j.dest_key)
def import_hive_table(database=None, table=None, partitions=None, allow_multi_format=False):
    assert_is_type(database, str, None)
    assert_is_type(table, str)
    assert_is_type(partitions, [[str]], None)
    p = { "database": database, "table": table, "partitions": partitions, "allow_multi_format": allow_multi_format }
    j = H2OJob(api("POST /3/ImportHiveTable", data=p), "Import Hive Table").poll()
    return get_frame(j.dest_key)
def import_hive_table ( database = None , table = None , partitions = None , allow_multi_format = False ) : assert_is_type ( database , str , None ) assert_is_type ( table , str ) assert_is_type ( partitions , [ [ str ] ] , None ) p = { "database" : database , "table" : table , "partitions" : partitions , "allow_multi_format" : allow_multi_format } j = H2OJob ( api ( "POST /3/ImportHiveTable" , data = p ) , "Import Hive Table" ) . poll ( ) return get_frame ( j . dest_key )
Import Hive table to H2OFrame in memory.

    Make sure to start H2O with Hive on classpath. Uses hive-site.xml on classpath to connect to Hive.

    :param database: Name of Hive database (default database will be used by default)
    :param table: name of Hive table to import
    :param partitions: a list of lists of strings - partition key column values of partitions you want to import.
    :param allow_multi_format: enable import of partitioned tables with different storage formats used. WARNING:
        this may fail on out-of-memory for tables with a large number of small partitions.

    :returns: an :class:`H2OFrame` containing data of the specified Hive table.

    :examples:
        >>> my_citibike_data = h2o.import_hive_table("default", "table", [["2017", "01"], ["2017", "02"]])
Import Hive table to H2OFrame in memory .