Package com.complexible.stardog.metadata
Class MetaProperties
java.lang.Object
com.complexible.stardog.metadata.MetaProperties
This class acts as the registry of valid Stardog options and provides convenience functions.
- Since:
- 0.9
- Version:
- 4.0
- Author:
- Evren Sirin, Michael Grove
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Predicate<MetaProperty<?>> Predicate that the returnstrueif the given option is creatable.static final com.google.common.collect.Ordering<MetaProperty<?>> Ordering on the name of optionsstatic final Predicate<MetaProperty<?>> Predicate that the returnstrueif the given option is writable. -
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<MetaProperty<?>> Returns the set of all valid Stardog options.static MetadataCombines the given multiple options instances one options instance.static Iterable<ConfigProperty<?>> configProperties(Iterable<MetaProperty<?>> theProperties) static booleancontains(MetaProperty<?> theOption) Returnstrueif the given option is contained in the set of all valid Stardog options.static booleanReturnstrueif there is a option with the given name in the set of all valid Stardog options.static Iterable<MetaProperty<?>> static Metadatadefaults(Iterable<MetaProperty<?>> theStardogOptions) Returns a new option map that contains explicit mapping for each given option to itsdefault value.static Iterable<MetaProperty<?>> static Metadatafilter(Metadata theOptions, Predicate<MetaProperty<?>> theFilter) Returns a new option map which contains explicit mappings only from those options that satisfy the given filter.static <T> MetaProperty<T> static Iterable<MetaProperty<?>> static Iterable<InfoProperty<?>> infoProperties(Iterable<MetaProperty<?>> theProperties) static Iterable<MetaProperty<?>> static com.complexible.stardog.metadata.PartitionedMetadatapartition(Metadata theOptions, Predicate<MetaProperty<?>> theFilter, boolean theMemory) static voidregister(Class<? extends MetaPropertyProvider> aProvider)
-
Field Details
-
WRITABLE
Predicate that the returnstrueif the given option is writable. -
CREATABLE
Predicate that the returnstrueif the given option is creatable. -
NAME_ORDERING
Ordering on the name of options
-
-
Method Details
-
get
-
contains
Returnstrueif there is a option with the given name in the set of all valid Stardog options. -
contains
Returnstrueif the given option is contained in the set of all valid Stardog options. -
allProperties
Returns the set of all valid Stardog options. -
databaseProperties
-
memoryProperties
-
diskProperties
-
indexProperties
-
configProperties
-
infoProperties
-
defaults
Returns a new option map that contains explicit mapping for each given option to itsdefault value. -
filter
Returns a new option map which contains explicit mappings only from those options that satisfy the given filter. -
partition
public static com.complexible.stardog.metadata.PartitionedMetadata partition(Metadata theOptions, Predicate<MetaProperty<?>> theFilter, boolean theMemory) -
combine
Combines the given multiple options instances one options instance. If there are duplicate options in the given arguments the value that appears in the last options instance wins. -
register
-