[go: nahoru, domu]

Skip to content

yahoojapan/yosegi-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yosegi Hive

This is Yosegi tools.

License

This project is on the Apache License. Please treat this project under this license.

How do I get started?

CLI is a Command Line Interface tool for using Yosegi. following tools are provided.

  • bin/setup.sh # for gathering Yosegi related jars
  • bin/yosegi.sh # create yosegi data, and show data

yosegi.sh needs some jars, so please create jar files before using.

$ mvn package

For preparation, get Yosegi jars and store then to proper directories.

$ bin/setup.sh # get Yosegi jars from Maven repository (bin/setup.sh -h for help)

convert JSON data to MDS format.

$ bin/yosegi.sh create -i etc/sample_json.txt -f json -o /tmp/sample.yosegi
$ bin/yosegi.sh cat -i /tmp/sample.yosegi -o '-' # show whole data
{"summary":{"total_price":550,"total_weight":412},"number":5,"price":110,"name":"apple","class":"fruits"}
{"summary":{"total_price":800,"total_weight":600},"number":10,"price":80,"name":"orange","class":"fruits"}
$ bin/yosegi.sh cat -i /tmp/sample.yosegi -o '-' -p '[ ["name"] ]' # show part of data
{"name":"apple"}
{"name":"orange"}

The tool has various functions. Please see the command list for details.

How to contribute

We welcome to join this project widely.

Maven

Yosegi Hive sources can get from the Maven repository.

Compile sources

Compile each source following instructions.

$ mvn clean package

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •