github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/sstable/options.go (about)

     1  // Copyright 2019 The LevelDB-Go and Pebble Authors. All rights reserved. Use
     2  // of this source code is governed by a BSD-style license that can be found in
     3  // the LICENSE file.
     4  
     5  package sstable
     6  
     7  import "github.com/petermattis/pebble/internal/base"
     8  
     9  // Compression exports the base.Compression type.
    10  type Compression = base.Compression
    11  
    12  // Exported Compression constants.
    13  const (
    14  	DefaultCompression = base.DefaultCompression
    15  	NoCompression      = base.NoCompression
    16  	SnappyCompression  = base.SnappyCompression
    17  )
    18  
    19  // FilterType exports the base.FilterType type.
    20  type FilterType = base.FilterType
    21  
    22  // Exported TableFilter constants.
    23  const (
    24  	TableFilter = base.TableFilter
    25  )
    26  
    27  // FilterWriter exports the base.FilterWriter type.
    28  type FilterWriter = base.FilterWriter
    29  
    30  // FilterPolicy exports the base.FilterPolicy type.
    31  type FilterPolicy = base.FilterPolicy
    32  
    33  // TableFormat exports the base.TableFormat type.
    34  type TableFormat = base.TableFormat
    35  
    36  // Exported TableFormat constants.
    37  const (
    38  	TableFormatRocksDBv2 = base.TableFormatRocksDBv2
    39  	TableFormatLevelDB   = base.TableFormatLevelDB
    40  )
    41  
    42  // TablePropertyCollector exports the base.TablePropertyCollector type.
    43  type TablePropertyCollector = base.TablePropertyCollector
    44  
    45  // TableOptions exports the base.LevelOptions type.
    46  type TableOptions = base.LevelOptions
    47  
    48  // Options exports the base.Options type.
    49  type Options = base.Options