@@ -49,14 +49,6 @@ const (
4949type SpanPolicy = base.SpanPolicy
5050type ValueStoragePolicyAdjustment = base.ValueStoragePolicyAdjustment
5151
52- // FilterType exports the base.FilterType type.
53- type FilterType = base.FilterType
54-
55- // Exported TableFilter constants.
56- const (
57- TableFilter = base .TableFilter
58- )
59-
6052// FilterWriter exports the base.FilterWriter type.
6153type FilterWriter = base.FilterWriter
6254
@@ -463,10 +455,6 @@ type LevelOptions struct {
463455 // the previous level for all other levels.
464456 FilterPolicy FilterPolicy
465457
466- // FilterType is a legacy field. The default and only possible value is
467- // TableFilter.
468- FilterType FilterType
469-
470458 // IndexBlockSize is the target uncompressed size in bytes of each index
471459 // block. When the index block size is larger than this target, two-level
472460 // indexes are automatically enabled. Setting this option to a large value
@@ -1832,7 +1820,7 @@ func (o *Options) String() string {
18321820 fmt .Fprintf (& buf , " block_size_threshold=%d\n " , l .BlockSizeThreshold )
18331821 fmt .Fprintf (& buf , " compression=%s\n " , l .Compression ().Name )
18341822 fmt .Fprintf (& buf , " filter_policy=%s\n " , l .FilterPolicy .Name ())
1835- fmt .Fprintf (& buf , " filter_type=%s \n " , l . FilterType )
1823+ fmt .Fprintf (& buf , " filter_type=table \n " )
18361824 fmt .Fprintf (& buf , " index_block_size=%d\n " , l .IndexBlockSize )
18371825 fmt .Fprintf (& buf , " target_file_size=%d\n " , o .TargetFileSizes [i ])
18381826 }
@@ -2350,7 +2338,6 @@ func (o *Options) Parse(s string, hooks *ParseHooks) error {
23502338 case "filter_type" :
23512339 switch value {
23522340 case "table" :
2353- l .FilterType = TableFilter
23542341 default :
23552342 // Tolerate unknown options, but log them.
23562343 if o .Logger != nil {
@@ -2629,7 +2616,6 @@ func (o *Options) MakeWriterOptions(level int, format sstable.TableFormat) sstab
26292616 writerOpts .BlockSizeThreshold = levelOpts .BlockSizeThreshold
26302617 writerOpts .Compression = levelOpts .Compression ()
26312618 writerOpts .FilterPolicy = levelOpts .FilterPolicy
2632- writerOpts .FilterType = levelOpts .FilterType
26332619 writerOpts .IndexBlockSize = levelOpts .IndexBlockSize
26342620 return writerOpts
26352621}
0 commit comments