-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1228 from dbs-leipzig/develop
[release] v0.4.5
- Loading branch information
Showing
504 changed files
with
12,435 additions
and
3,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ os: | |
matrix: | ||
allow_failures: | ||
- os: windows | ||
- os: osx | ||
|
||
cache: | ||
directories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// ------------------------------------------------------------------ | ||
// NOTICE file corresponding to the section 4d of The Apache License, | ||
// Version 2.0, in this case for Gradoop | ||
// ------------------------------------------------------------------ | ||
|
||
gradoop-accumulo | ||
Copyright 2014-2019 Leipzig University (Database Research Group) | ||
|
||
This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
- com.github.s1ck:gdl:0.3 | ||
- com.google.guava:guava | ||
- commons-cli:commons-cli:1.4 | ||
- log4j:log4j:1.2.17 | ||
- me.lemire.integercompression:JavaFastPFOR:0.1.10 | ||
- org.codehaus.jettison:jettison:1.3.7 | ||
- org.objenesis:objenesis:2.5.1 | ||
|
||
This project bundles the following dependencies under the BSD license. | ||
See bundled license files for details. | ||
|
||
- com.esotericsoftware:kryo:4.0.2 | ||
- com.esotericsoftware:minlog:1.3.0 | ||
- org.antlr:antlr4-runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
...p-common/src/main/java/org/gradoop/common/model/api/strategies/PropertyValueStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* | ||
* Copyright © 2014 - 2019 Leipzig University (Database Research Group) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.gradoop.common.model.api.strategies; | ||
|
||
import org.apache.flink.core.memory.DataInputView; | ||
import org.apache.flink.core.memory.DataOutputView; | ||
import org.gradoop.common.model.impl.properties.PropertyValue; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Interface defining the methods necessary to handle the (de-) serialization of a | ||
* {@link PropertyValue}'s value. | ||
* | ||
* @param <T> The property value type. | ||
*/ | ||
public interface PropertyValueStrategy<T> { | ||
|
||
/** | ||
* Writes the given value to the provided {@link DataOutputView}. | ||
* The argument {@code value} can not be {@code null}. | ||
* | ||
* @param value to be written to the {@link DataOutputView}. | ||
* @param outputView that the value is written to. | ||
* @throws IOException if write process fails. | ||
*/ | ||
void write(T value, DataOutputView outputView) throws IOException; | ||
|
||
/** | ||
* Reads raw bytes from the given {@link DataInputView} and deserializes the contained object. | ||
* | ||
* @param inputView containing serialized object. | ||
* @param typeByte byte needed to indicate whether serialized object has a variable length. | ||
* @return deserialized object. | ||
* @throws IOException when reading or deserialization of the object fails. | ||
*/ | ||
T read(DataInputView inputView, byte typeByte) throws IOException; | ||
|
||
/** | ||
* Compares two objects. | ||
* | ||
* @param value first object. | ||
* @param other second object. | ||
* @return a negative integer, zero, or a positive integer as first object is less than, equal to, | ||
* or greater than the second object. | ||
* @throws IllegalArgumentException when {@code other} is not comparable to {@code value}. | ||
*/ | ||
int compare(T value, Object other); | ||
|
||
/** | ||
* Checks if given object is an instance of the data type the specific strategy handles. | ||
* | ||
* @param value to be checked. | ||
* @return true if {@code value} is an instance of the data type this strategy handles. | ||
* False otherwise. | ||
*/ | ||
boolean is(Object value); | ||
|
||
/** | ||
* Gets the class of the data type the specific strategy handles. | ||
* | ||
* @return class of the type handled by this strategy. | ||
*/ | ||
Class<T> getType(); | ||
|
||
/** | ||
* Deserializes an object from the provided byte array. | ||
* | ||
* @param bytes representing a serialized object. | ||
* @return an instance of the type handled by this strategy. | ||
* @throws IOException on failure | ||
*/ | ||
T get(byte[] bytes) throws IOException; | ||
|
||
/** | ||
* Gets a byte which represents the data type the specific strategy handles. | ||
* | ||
* @return a byte. | ||
*/ | ||
byte getRawType(); | ||
|
||
/** | ||
* Serializes the given object. | ||
* The argument {@code value} can not be {@code null}. | ||
* | ||
* @param value the object to be serialized. | ||
* @return byte array representation of the provided object. | ||
* @throws IOException on failure | ||
*/ | ||
byte[] getRawBytes(T value) throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.