| CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Tue, 23 Dec 2025 16:57:29 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.67
x-archive-orig-date: Mon, 27 Sep 2010 05:19:04 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "a01fd3c061033bdca2abdf1f56f3c723"
x-archive-orig-x-runtime: 299ms
x-archive-orig-content-length: 36720
x-archive-orig-set-cookie: _github_ses=BAh7ByIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ADoRbG9jYWxlX2d1ZXNzMA%3D%3D--b6ebf15af8093170896e319ec54140c64ab71bc1; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Mon, 27 Sep 2010 05:19:04 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_18_20100926235006_crawl100-c/51_18_20100927051539_crawl101.arc.gz
server-timing: captures_list;dur=0.891601, exclusion.robots;dur=0.056092, exclusion.robots.policy;dur=0.043261, esindex;dur=0.012710, cdx.remote;dur=25.466580, LoadShardBlock;dur=153.539700, PetaboxLoader3.datanode;dur=111.732623, PetaboxLoader3.resolve;dur=100.860007, load_resource;dur=111.986991
x-app-server: wwwb-app222-dc8
x-ts: 200
x-tr: 370
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app222; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
kennyj's java_bin at master - GitHub
kennyj / java_bin
- Source
- Commits
- Network (1)
- Issues (1)
- Downloads (10)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
java_bin /
| name | age | message | |
|---|---|---|---|
| |
.document | Loading commit data... |
|
| |
.gitignore | ||
| |
CHANGELOG | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
ext/ | ||
| |
fixtures/ | ||
| |
how_to_release.txt | ||
| |
java_bin.gemspec | ||
| |
lib/ | ||
| |
test/ |
README.rdoc
java_bin
This is an Apache Solr JavaBin format (binary format) implementation for Ruby.
Features
- fast parse(2.5 - 5 times faster than ruby eval), and less network traffic.
MRI 1.8.7 [data2] ruby eval parse. 5000 times. elapsed time 6.664981 javabin parse. 5000 times. elapsed time 1.472825 4.52530409247534 times REE 1.8.7 [data2] ruby eval parse. 5000 times. elapsed time 4.844482 javabin parse. 5000 times. elapsed time 1.059044 4.57439162112245 times YARV 1.9.2 pre1 [data2] ruby eval parse. 5000 times. elapsed time 6.659331328 javabin parse. 5000 times. elapsed time 1.261828473 5.277525012704322 times
- rsolr/solr-ruby support.
- pure and c extension code.
- ruby 1.8/1.9 support.
Requirements
- Ruby1.8.7 or later (include 1.9.x)
- (recommended) C compiler (gcc or vc++): you can also use java_bin without c extension, but ‘pure’ is 30 times slower than ‘ext’.
- JavaBin has been tested with MRI 1.8.7, REE 1.8.7, YARV 1.9.2 pre1 on Ubuntu Linux 9.10 (32bit) and MRI 1.8.6, YARV 1.9.1 on Windows Vista (32bit), and Apache Solr 1.4
Install
(Linux)
gem sources -a https://gemcutter.org
gem install java_bin
(Windows)
fix (path to)\ruby\lib\ruby\1.8\i386-mswin32\config.h
#if _MSC_VER != 1200
↓
#if _MSC_VER < 1200
start => visual studio c++ 200x xxxx edition => visual studio tools => visual studio 200x command prompt
gem sources -a https://gemcutter.org
gem install java_bin
or
cd (path to)\ext\java_bin\ext
ruby extconf.rb
nmake
Simple Usage
require 'rubygems' require 'java_bin' @parser = JavaBin.parser.new result = @parser.parse( javabin format string )
With RSolr/Solr-Ruby
- By RSolr/Solr-Ruby support, a parser automatically uses javabin format instead of ruby format.
require 'rubygems' require 'rsolr' require 'java_bin' solr = RSolr.connect solr.select :q => '*:*'
TODO
- max os x supoort
- more parse speed
- license
- shared string over parsing
- builder(writer)作成
- JRuby support
References
- javabin wiki.apache.org/solr/javabin
- javabin codec (for java) svn.apache.org/viewvc/lucene/solr/trunk/src/common/org/apache/solr/common/util/JavaBinCodec.java?view=markup
- rsolr github.com/mwmitchell/rsolr/
- solr-ruby wiki.apache.org/solr/solr-ruby
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don’t break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Author
Toshinori Kajihara <kennyj@gmail.com>
Copyright
Copyright © 2010 kennyj. See LICENSE for details.
- © 2010 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security
Keyboard Shortcuts
Site wide shortcuts
- s
- Focus site search
- ?
- Bring up this help dialog
Commit list
- j
- Move selected down
- k
- Move selected up
- t
- Open tree
- p
- Open parent
- c or o or enter
- Open commit
Pull request list
- j
- Move selected down
- k
- Move selected up
- o or enter
- Open issue
Issues
- j
- Move selected down
- k
- Move selected up
- x
- Toggle select target
- o or enter
- Open issue
- I
- Mark selected as read
- U
- Mark selected as unread
- e
- Close selected
- y
- Remove selected from view
- c
- Create issue
- l
- Create label
- i
- Back to inbox
- u
- Back to issues
- /
- Focus issues search
Network Graph
- ← or h
- Scroll left
- → or l
- Scroll right
- ↑ or k
- Scroll up
- ↓ or j
- Scroll down
- t
- Toggle visibility of head labels
- shift ← or shift h
- Scroll all the way left
- shift → or shift l
- Scroll all the way right
- shift ↑ or shift k
- Scroll all the way up
- shift ↓ or shift j
- Scroll all the way down
