implicit class RDFWriter[T] extends AnyRef
Adds methods, ntriples and turtle, to org.apache.flink.api.scala.ExecutionEnvironment that allows to
write N-Triples and N-Quads files.
- Alphabetic
- By Inheritance
- RDFWriter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RDFWriter(ds: DataSet[Triple])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
saveAsNQuadsFile(graph: String, path: String, writeMode: WriteMode = FileSystem.WriteMode.NO_OVERWRITE): DataSink[String]
Writes the triples as N-Quads file(s) to the specified location using the given graph.
Writes the triples as N-Quads file(s) to the specified location using the given graph.
- A directory is created and multiple files are written underneath. (Default behavior)
This sink creates a directory called "path1", and files "1", "2" ... are writen underneath depending on parallelism. └── path1/ ├── 1 ├── 2 └── ...Code Example
dataset.saveAsNQuadsFile("file:///path1")- A single file called "path1" is created when parallelism is set to 1
. └── path1
Code Example
// Parallelism is set to only this particular operation dataset.saveAsNQuadsFile("file:///path1").setParallelism(1) // This will have the same effect but note all operators' parallelism are set to one env.setParallelism(1); ... dataset.saveAsNQuadsFile("file:///path1")
- A directory is always created when fs.output.always-create-directory is set to true in flink-conf.yaml file, even when parallelism is set to 1.
. └── path1/ └── 1Code Example
// fs.output.always-create-directory = true dataset.saveAsNQuadsFile("file:///path1").setParallelism(1)
- graph
The graph used for the N-Quads
- path
The path pointing to the location the text file or files under the directory is written to.
- writeMode
Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE.
- returns
The DataSink that writes the DataSet.
-
def
saveAsNTriplesFile(path: String, writeMode: WriteMode = FileSystem.WriteMode.NO_OVERWRITE): DataSink[String]
Writes the triples as N-Triples file(s) to the specified location.
Writes the triples as N-Triples file(s) to the specified location.
- A directory is created and multiple files are written underneath. (Default behavior)
This sink creates a directory called "path1", and files "1", "2" ... are writen underneath depending on parallelism. └── path1/ ├── 1 ├── 2 └── ...Code Example
dataset.saveAsNTriplesFile("file:///path1")- A single file called "path1" is created when parallelism is set to 1
. └── path1
Code Example
// Parallelism is set to only this particular operation dataset.saveAsNTriplesFile("file:///path1").setParallelism(1) // This will have the same effect but note all operators' parallelism are set to one env.setParallelism(1); ... dataset.saveAsNTriplesFile("file:///path1")
- A directory is always created when fs.output.always-create-directory is set to true in flink-conf.yaml file, even when parallelism is set to 1.
. └── path1/ └── 1Code Example
// fs.output.always-create-directory = true dataset.saveAsNTriplesFile("file:///path1").setParallelism(1)
- path
The path pointing to the location the text file or files under the directory is written to.
- writeMode
Control the behavior for existing files. Options are NO_OVERWRITE and OVERWRITE.
- returns
The DataSink that writes the DataSet.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()