Class BinaryRDFWriterSettings


  • public class BinaryRDFWriterSettings
    extends java.lang.Object
    WriterSettings for the binary RDF writer.
    Since:
    4.3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static RioSetting<java.lang.Long> BUFFER_SIZE
      Setting for the number of statements to consider while analyzing duplicate RDF terms.
      static RioSetting<java.lang.String> CHARSET
      Setting for the character set to use for encoding strings (only applicable to version 2 of the binary RDF format).
      static RioSetting<java.lang.Boolean> RECYCLE_IDS
      Setting for whether to recycle IDs while writing binary RDF files.
      static RioSetting<java.lang.Long> VERSION
      Setting for the binary RDF format to use.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BinaryRDFWriterSettings()
      Private constructor
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VERSION

        public static final RioSetting<java.lang.Long> 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 RioSetting<java.lang.Long> 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 RioSetting<java.lang.String> 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 RioSetting<java.lang.Boolean> 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

    • Constructor Detail

      • BinaryRDFWriterSettings

        private BinaryRDFWriterSettings()
        Private constructor