Sha256: d4b9ab7acc8059c82c67994d5fb9a7d9546d76cdab05de1f30fef45a9b67a3ff

Contents?: true

Size: 565 Bytes

Versions: 102

Compression:

Stored size: 565 Bytes

Contents

package com.jrjackson;

import com.fasterxml.jackson.core.JsonParser;
import java.io.IOException;
import org.jruby.Ruby;
import org.jruby.RubyObject;

/**
 *
 * @author Guy Boertje
 */
public class RubyBigIntValueConverter implements RubyConverter {

    @Override
    public RubyObject convert(Ruby ruby, JsonParser jp) throws IOException {
        if (jp.getNumberType() == JsonParser.NumberType.BIG_INTEGER) {
            return RubyUtils.rubyBignum(ruby, jp.getBigIntegerValue());
        }
        return RubyUtils.rubyFixnum(ruby, jp.getLongValue());
    }
}

Version data entries

102 entries across 90 versions & 17 rubygems

Version Path
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/jrjackson-0.3.9-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/jrjackson-0.3.9-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/jrjackson-0.3.9-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/jrjackson-0.3.9-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/jrjackson-0.3.9-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/jrjackson-0.4.2-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
jrjackson-0.4.2-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
jrjackson-0.4.1-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/jrjackson-0.4.0-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/jrjackson-0.4.0-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/jrjackson-0.4.0-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java