Пример #1
0
    def __init__(
        self,
        where,
        *,
        file_version='0.12',
        batch_size=1024,
        stripe_size=64 * 1024 * 1024,
        compression='uncompressed',
        compression_block_size=65536,
        compression_strategy='speed',
        row_index_stride=10000,
        padding_tolerance=0.0,
        dictionary_key_size_threshold=0.0,
        bloom_filter_columns=None,
        bloom_filter_fpp=0.05,
    ):

        self.writer = _orc.ORCWriter()
        self.writer.open(
            where,
            file_version=file_version,
            batch_size=batch_size,
            stripe_size=stripe_size,
            compression=compression,
            compression_block_size=compression_block_size,
            compression_strategy=compression_strategy,
            row_index_stride=row_index_stride,
            padding_tolerance=padding_tolerance,
            dictionary_key_size_threshold=dictionary_key_size_threshold,
            bloom_filter_columns=bloom_filter_columns,
            bloom_filter_fpp=bloom_filter_fpp)
        self.is_open = True
Пример #2
0
 def __init__(self, where):
     self.writer = _orc.ORCWriter()
     self.writer.open(where)