Skip to content

Instantly share code, notes, and snippets.

View lvca's full-sized avatar

Luca Garulli lvca

View GitHub Profile
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx2g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server0-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7553 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx2g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server1-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7551 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx2g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server2-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7552 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx1g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server0-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
2014-02-24 13:54:26:834 INFO URL=plocal:/Users/luca/work/dev/orientechnologies/orientdb/misc/servers/0/databases/platform [OrientDBCluster]
Current directory: /Users/luca/work/dev/orientechnologies/orientdb/misc/.
2014-02-24 13:54:26:835 INFO Starting EXECUTE test against database plocal:/Users/luca/work/dev/orientechnologies/orientdb/misc/servers/0/databases/platform count = 10000 [OrientDBCluster]
2014-02-24 13:54:27:210 INFO Loading configuration from input stream [OServerConfigurationLoaderXml]
2014-02-24 13:54:27:462 INFO OrientDB Server v1.7-rc2-SNAPSHOT is starting up... [OServer]
2014-02-24 13:54:27:470 INFO Databases directory: /Users/luca/work/dev/orientechnologies/orientdb/misc/servers/0/databases [OServer]
2014-02-24 13:54:27:494 INFO Listening binary connections on 0.0.0.0:2424 (protocol v.20) [OServerNetworkListener]
2014-02-24 13:54:27:495 INFO Listening http connections on 0.0.0.0:2480 (protocol v.10) [OServerNetworkListener]
2014-02-24 13:54:27:519 INFO Starting distributed server 'europe0'.
2014-02-24 13:54:38:035 INFO URL=plocal:/Users/luca/work/dev/orientechnologies/orientdb/misc/servers/1/databases/platform [OrientDBCluster]
2014-02-24 13:54:38:037 INFO Starting EXECUTE test against database plocal:/Users/luca/work/dev/orientechnologies/orientdb/misc/servers/1/databases/platform count = 10000 [OrientDBCluster]Current directory: /Users/luca/work/dev/orientechnologies/orientdb/misc/.
2014-02-24 13:54:39:335 INFO Loading configuration from input stream [OServerConfigurationLoaderXml]
2014-02-24 13:54:39:539 INFO OrientDB Server v1.7-rc2-SNAPSHOT is starting up... [OServer]
2014-02-24 13:54:39:549 INFO Databases directory: /Users/luca/work/dev/orientechnologies/orientdb/misc/servers/1/databases [OServer]
2014-02-24 13:54:39:582 INFO Port 0.0.0.0:2424 busy, trying the next available... [OServerNetworkListener]
2014-02-24 13:54:39:583 INFO Listening binary connections on 0.0.0.0:2425 (protocol v.20) [OServerNetworkListener]
2014-02-24 13:54:39:583 INFO Port 0.0.0.0:2480 busy, trying the next avai
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx1g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server0-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx1g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server1-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7534 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -server -Xmx1g -DORIENTDB_HOME=/Users/luca/work/dev/orientechnologies/orientdb/releases/orientdb-community-1.7-SNAPSHOT -Dorientdb.www.path=src/site -Djava.util.logging.config.file=/Users/luca/work/dev/orientechnologies/orientdb/misc/src/test/resources/orientdb-server2-log.properties -Dorientdb.config.file=${ORIENTDB_HOME}/config/orientdb-dserver-config.xml -Drhino.opt.level=9 -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13 CE.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
package com.orientechnologies.orient.core.compression.impl;
import com.orientechnologies.orient.core.compression.OCompression;
import com.orientechnologies.orient.core.compression.OCompressionFactory;
import com.orientechnologies.orient.core.record.impl.ODocument;
import java.util.Random;
/**
* @author Andrey Lomakin