|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.stardog.metadata.MetaProperties
public class MetaProperties
This class acts as the registry of valid Stardog options and provides convenience functions.
| Field Summary | |
|---|---|
static Predicate<MetaProperty<?>> |
CONFIG
Predicate that the returns true if the given property is a config property. |
static Predicate<MetaProperty<?>> |
CREATABLE
Predicate that the returns true if the given option is creatable. |
static Predicate<MetaProperty<?>> |
DB_OPTION
|
static Predicate<MetaProperty<?>> |
DISK_OPTION
|
static Predicate<MetaProperty<?>> |
INDEX_OPTION
|
static Predicate<MetaProperty<?>> |
INFO
Predicate that the returns true if the given property is an info property. |
static Predicate<MetaProperty<?>> |
MEM_OPTION
|
static Ordering<MetaProperty<?>> |
NAME_ORDERING
Ordering on the name of options |
static Function<String,MetaProperty<?>> |
NAME_TO_PROP
Maps a name to an option using get(String) |
static Function<MetaProperty<?>,String> |
PROP_TO_NAME
Maps an option to its name. |
static Predicate<MetaProperty<?>> |
READABLE
Predicate that the returns true if the given option is readable. |
static Predicate<MetaProperty<?>> |
RECOGNIZED
Predicate that the returns true if the given option is a recognized Stardog option as
determined by contains(MetaProperty). |
static Predicate<MetaProperty<?>> |
WRITABLE
Predicate that the returns true if the given option is writable. |
| Method Summary | ||
|---|---|---|
static Iterable<MetaProperty<?>> |
allProperties()
Returns the set of all valid Stardog options. |
|
static Metadata |
combine(Metadata... theOptionsArray)
Combines the given multiple options instances one options instance. |
|
static Iterable<ConfigProperty<?>> |
configProperties(Iterable<MetaProperty<?>> theProperties)
|
|
static boolean |
contains(MetaProperty<?> theOption)
Returns true if the given option is contained in the set of all valid Stardog options. |
|
static boolean |
contains(String theName)
Returns true if there is a option with the given name in the set of all valid Stardog options. |
|
static Iterable<MetaProperty<?>> |
databaseProperties()
|
|
static Metadata |
defaults(Iterable<MetaProperty<?>> theStardogOptions)
Returns a new option map that contains explicit mapping for each given option to its default value. |
|
static Iterable<MetaProperty<?>> |
diskProperties()
|
|
static Metadata |
filter(Metadata theOptions,
Predicate<MetaProperty<?>> theFilter)
Returns a new option map which contains explicit mappings only from those options that satisfy the given filter. |
|
static
|
get(String name)
|
|
static Iterable<MetaProperty<?>> |
indexProperties()
|
|
static Iterable<InfoProperty<?>> |
infoProperties(Iterable<MetaProperty<?>> theProperties)
|
|
static Iterable<MetaProperty<?>> |
memoryProperties()
|
|
static com.clarkparsia.stardog.metadata.PartitionedMetadata |
partition(Metadata theOptions,
Predicate<MetaProperty<?>> theFilter)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Predicate<MetaProperty<?>> CONFIG
true if the given property is a config property.
public static final Predicate<MetaProperty<?>> INFO
true if the given property is an info property.
public static final Predicate<MetaProperty<?>> READABLE
true if the given option is readable.
public static final Predicate<MetaProperty<?>> WRITABLE
true if the given option is writable.
public static final Predicate<MetaProperty<?>> CREATABLE
true if the given option is creatable.
public static final Predicate<MetaProperty<?>> RECOGNIZED
true if the given option is a recognized Stardog option as
determined by contains(MetaProperty).
public static final Predicate<MetaProperty<?>> DB_OPTION
public static final Predicate<MetaProperty<?>> INDEX_OPTION
public static final Predicate<MetaProperty<?>> MEM_OPTION
public static final Predicate<MetaProperty<?>> DISK_OPTION
public static final Function<MetaProperty<?>,String> PROP_TO_NAME
public static final Function<String,MetaProperty<?>> NAME_TO_PROP
get(String)
public static final Ordering<MetaProperty<?>> NAME_ORDERING
| Method Detail |
|---|
public static <T> MetaProperty<T> get(String name)
public static boolean contains(String theName)
true if there is a option with the given name in the set of all valid Stardog options.
public static boolean contains(MetaProperty<?> theOption)
true if the given option is contained in the set of all valid Stardog options.
public static Iterable<MetaProperty<?>> allProperties()
public static Iterable<MetaProperty<?>> databaseProperties()
public static Iterable<MetaProperty<?>> memoryProperties()
public static Iterable<MetaProperty<?>> diskProperties()
public static Iterable<MetaProperty<?>> indexProperties()
public static Iterable<ConfigProperty<?>> configProperties(Iterable<MetaProperty<?>> theProperties)
public static Iterable<InfoProperty<?>> infoProperties(Iterable<MetaProperty<?>> theProperties)
public static Metadata defaults(Iterable<MetaProperty<?>> theStardogOptions)
default value.
public static Metadata filter(Metadata theOptions,
Predicate<MetaProperty<?>> theFilter)
public static com.clarkparsia.stardog.metadata.PartitionedMetadata partition(Metadata theOptions,
Predicate<MetaProperty<?>> theFilter)
public static Metadata combine(Metadata... theOptionsArray)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||