Improve class for Id, Value, GraphOutput and GraphInput (#6)
authorLinary <liningrui@vip.qq.com>
Tue, 19 Jan 2021 01:13:59 +0000 (09:13 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Jan 2021 01:13:59 +0000 (09:13 +0800)
commit452233315ca47590210f6da6b6e93123162c9ed2
treea0e32d12c8b56b7ea9a6affe97c999eb40b9d39c
parent89e35d92893e0e2cffeb381aef8af367f7740ceb
Improve class for Id, Value, GraphOutput and GraphInput (#6)

* Improve class for Id, Value, GraphOutput and GraphInput

* Add ListValue and improve code

* Add IdValueList and IdValueListList

* Let StreamGraphOutput as a proxy of DataOutputStream

* Add CsvStructGraphOutput and JsonStructGraphOutput
72 files changed:
.travis.yml
checkstyle.xml
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Constants.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/SerialEnum.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Utf8Id.java [deleted file]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/ValueType.java [deleted file]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/exception/ComputeException.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/exception/ComputeException.java with 95% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/exception/ComputerException.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/exception/ComputerException.java with 96% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/exception/IllegalArgException.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/exception/IllegalArgException.java with 96% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/exception/ReadException.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/exception/ReadException.java with 95% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/exception/WriteException.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/exception/WriteException.java with 95% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/Id.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/IdFactory.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/IdType.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/LongId.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/Utf8Id.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/id/UuidId.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/DoubleValue.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/DoubleValue.java with 87% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/FloatValue.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IdValue.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IdValueList.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IdValueListList.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IntValue.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ListValue.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/LongValue.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/LongValue.java with 87% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/NullValue.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/NullValue.java with 84% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/Value.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Value.java with 84% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ValueFactory.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ValueType.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/CsvStructGraphOutput.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/LongId.java with 56% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/GraphInput.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Id.java with 71% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/GraphOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/GraphOutputFactory.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/JsonStructGraphOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/OptimizedStreamGraphInput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/OptimizedStreamGraphOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/OutputFormat.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/Readable.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Readable.java with 87% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/StreamGraphInput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/StreamGraphOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/StructGraphOutput.java [new file with mode: 0644]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/io/Writable.java [moved from computer-core/src/main/java/com/baidu/hugegraph/computer/core/common/Writable.java with 87% similarity]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/ByteArrayUtil.java
computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/CoderUtil.java
computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/PlainByteArrayComparator.java [deleted file]
computer-core/src/main/java/com/baidu/hugegraph/computer/core/util/StringEncoding.java [new file with mode: 0644]
computer-test/pom.xml
computer-test/src/main/java/com/baidu/hugegraph/computer/core/BaseCoreTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/UnitTestSuite.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/CoreTestSuite.java with 79% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/CommonTestSuite.java
computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/DoubleValueTest.java [deleted file]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/ExceptionTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/exception/ExceptionTest.java with 95% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/GraphTestSuite.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/id/IdFactoryTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/id/IdTypeTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/id/LongIdTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/LongIdTest.java with 54% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/id/Utf8IdTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/Utf8IdTest.java with 53% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/id/UuidIdTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/DoubleValueTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/FloatValueTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IdValueListListTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IdValueListTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/IntValueTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ListValueTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/LongValueTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/LongValueTest.java with 60% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/NullValueTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/NullValueTest.java with 62% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ValueFactoryTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/graph/value/ValueTypeTest.java [moved from computer-test/src/main/java/com/baidu/hugegraph/computer/core/common/ValueTypeTest.java with 52% similarity]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/io/IOTestSuite.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/io/JsonStructGraphOutputTest.java [new file with mode: 0644]
computer-test/src/main/java/com/baidu/hugegraph/computer/core/io/StreamGraphOutputInputTest.java [new file with mode: 0644]
pom.xml