@ Override public String writeSingle ( String spaceId , String chunkChecksum , ChunkInputStream chunk , Map < String , String > properties ) throws NotFoundException { log . debug ( "writeSingle: " + spaceId + ", " + chunk . getChunkId ( ) ) ; createSpaceIfNotExist ( spaceId ) ; addChunk ( spaceId , chunkChecksum , chunk , properties , true ) ; log . debug ( "written: " + spaceId + ", " + chunk . getChunkId ( ) ) ; return chunk . getMD5 ( ) ; }
This method writes a single chunk to the DataStore .