fluent-plugin-ilm_hbase 0.1.4.13 → 0.1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/out_ilm_hbase.rb +4 -2
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2aba127e1a740682708b3d07c7181df172082e4c
         | 
| 4 | 
            +
              data.tar.gz: 702d9f0d39132c1c11c3578963ed2a605bb8451b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 40fca4e008237eef2b223ca2383e670b617eda18572bc6210913f4fbd8e8a2205c83f7300b50c6759417bbad45a9a759d0f85ba37b155ea2114c457a68854349
         | 
| 7 | 
            +
              data.tar.gz: afecd5c22704f51caf978967cfe8f1b2e8d7afadbbcd7ec2981714519461db4efc6718b2c10e93c76274703ea2a05f902b39caa3947b3bc23ba2a4bf365cc5e5
         | 
| @@ -2,6 +2,7 @@ module Fluent | |
| 2 2 | 
             
                class IlmHbaseOutput < Fluent::BufferedOutput
         | 
| 3 3 | 
             
                Fluent::Plugin.register_output('ilm_hbase', self)
         | 
| 4 4 |  | 
| 5 | 
            +
                helpers :formatter
         | 
| 5 6 | 
             
                def initialize
         | 
| 6 7 | 
             
                  super
         | 
| 7 8 | 
             
                  require 'massive_record'
         | 
| @@ -38,6 +39,7 @@ module Fluent | |
| 38 39 | 
             
                  @rowchangeflag = @include_custom_row_key
         | 
| 39 40 | 
             
                  @rowkeys = @custom_key_list.split(",")
         | 
| 40 41 | 
             
                  @customrow = SecureRandom.uuid
         | 
| 42 | 
            +
                  @formatter = formatter_create
         | 
| 41 43 | 
             
                end
         | 
| 42 44 |  | 
| 43 45 | 
             
                def start
         | 
| @@ -71,7 +73,7 @@ MESSAGE | |
| 71 73 |  | 
| 72 74 | 
             
                def format(tag, time, record)
         | 
| 73 75 | 
             
                  row_values = {}
         | 
| 74 | 
            -
             | 
| 76 | 
            +
                  new_record = @formatter.format(tag, time, record)
         | 
| 75 77 | 
             
                  row_values[@tag_column_name] = tag unless @tag_column_name.nil?
         | 
| 76 78 | 
             
                  row_values[@time_column_name] = time unless @time_column_name.nil?
         | 
| 77 79 |  | 
| @@ -80,7 +82,7 @@ MESSAGE | |
| 80 82 | 
             
                    next if field.nil? or column.nil?
         | 
| 81 83 |  | 
| 82 84 | 
             
                    components = field.split(".")
         | 
| 83 | 
            -
                    value =  | 
| 85 | 
            +
                    value = new_record
         | 
| 84 86 | 
             
                    for c in components
         | 
| 85 87 | 
             
                      value = value[c]
         | 
| 86 88 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: fluent-plugin-ilm_hbase
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1.4. | 
| 4 | 
            +
              version: 0.1.4.14
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - testman
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017- | 
| 11 | 
            +
            date: 2017-07-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         |