Class BinaryRDFWriterSettings

java.lang.Object
org.eclipse.rdf4j.rio.binary.BinaryRDFWriterSettings

public class BinaryRDFWriterSettings extends Object
WriterSettings for the binary RDF writer.
Since:
4.3.0
Author:
Frens Jan Rumph
  • Field Details

    • VERSION

      public static final LongRioSetting VERSION
      Setting for the binary RDF format to use.

      Defaults to 2.

      Can be overridden by setting system property org.eclipse.rdf4j.rio.binary.format_version

    • BUFFER_SIZE

      public static final LongRioSetting BUFFER_SIZE
      Setting for the number of statements to consider while analyzing duplicate RDF terms. Terms that occur twice or more within the buffer of statements are written out (starting from the second occurrence) as identifiers.

      Defaults to 8192.

      Can be overridden by setting system property org.eclipse.rdf4j.rio.binary.buffer_size

    • CHARSET

      public static final StringRioSetting CHARSET
      Setting for the character set to use for encoding strings (only applicable to version 2 of the binary RDF format).

      Defaults to "UTF-8".

      Can be overridden by setting system property org.eclipse.rdf4j.rio.binary.charset

    • RECYCLE_IDS

      public static final BooleanRioSetting RECYCLE_IDS
      Setting for whether to recycle IDs while writing binary RDF files. (only applicable to version 2 of the binary RDF format).

      If enabled (the default), once an RDF term is no longer referenced in the buffer of statements (see also BUFFER_SIZE), the ID of that term can be reused and any in memory reference to that term is released. If disabled, once an RDF term is assigned an ID it is never released and an in-memory reference to that term is maintained in memory. Note that disabling this setting may decrease file size, but also may result in an OutOfMemoryError because heap memory used is for every term that is ever assigned an ID.

      Defaults to true.

      Can be overridden by setting system property org.eclipse.rdf4j.rio.binary.recycle_ids