Search in sources :

Example 26 with SerializedData

use of fr.inria.spirals.repairnator.serializer.engines.SerializedData in project repairnator by Spirals-Team.

the class ScannerSerializer method serialize.

public void serialize() {
    SerializedData data = new SerializedData(this.serializeAsList(), this.serializeAsJson());
    List<SerializedData> allData = new ArrayList<>();
    allData.add(data);
    for (SerializerEngine engine : this.getEngines()) {
        engine.serialize(allData, this.getType());
    }
}
Also used : ArrayList(java.util.ArrayList) SerializedData(fr.inria.spirals.repairnator.serializer.engines.SerializedData) SerializerEngine(fr.inria.spirals.repairnator.serializer.engines.SerializerEngine) MongoDBSerializerEngine(fr.inria.spirals.repairnator.serializer.engines.json.MongoDBSerializerEngine)

Aggregations

SerializedData (fr.inria.spirals.repairnator.serializer.engines.SerializedData)26 ArrayList (java.util.ArrayList)24 SerializerEngine (fr.inria.spirals.repairnator.serializer.engines.SerializerEngine)16 MongoDBSerializerEngine (fr.inria.spirals.repairnator.serializer.engines.json.MongoDBSerializerEngine)12 JsonObject (com.google.gson.JsonObject)10 List (java.util.List)8 Sheets (com.google.api.services.sheets.v4.Sheets)6 MongoConnection (fr.inria.spirals.repairnator.serializer.mongodb.MongoConnection)6 Date (java.util.Date)4 JsonElement (com.google.gson.JsonElement)2 BufferedWriter (java.io.BufferedWriter)2 IOException (java.io.IOException)2 Gson (com.google.gson.Gson)1 GsonBuilder (com.google.gson.GsonBuilder)1 JsonArray (com.google.gson.JsonArray)1 BuildToBeInspected (fr.inria.spirals.repairnator.BuildToBeInspected)1 Metrics (fr.inria.spirals.repairnator.process.inspectors.Metrics)1 MetricsSerializerAdapter (fr.inria.spirals.repairnator.process.inspectors.MetricsSerializerAdapter)1 NopolInformation (fr.inria.spirals.repairnator.process.nopol.NopolInformation)1 PatchAndDiff (fr.inria.spirals.repairnator.process.nopol.PatchAndDiff)1