public class JanusGraphDefaultSchemaMaker extends Object implements DefaultSchemaMaker
DefaultSchemaMaker
implementation for Blueprints graphsModifier and Type | Field and Description |
---|---|
static DefaultSchemaMaker |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Cardinality |
defaultPropertyCardinality(String key) |
protected Class |
determineClass(Object value) |
boolean |
ignoreUndefinedQueryTypes()
Whether to ignore undefined types occurring in a query.
|
PropertyKey |
makePropertyKey(PropertyKeyMaker factory,
Object value)
Creates a new property key with default settings against the provided
PropertyKeyMaker and value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeConnectionConstraint, makeEdgeLabel, makePropertyConstraintForEdge, makePropertyConstraintForVertex, makePropertyKey, makeVertexLabel
public static final DefaultSchemaMaker INSTANCE
public Cardinality defaultPropertyCardinality(String key)
defaultPropertyCardinality
in interface DefaultSchemaMaker
public PropertyKey makePropertyKey(PropertyKeyMaker factory, Object value)
DefaultSchemaMaker
PropertyKeyMaker
and value.makePropertyKey
in interface DefaultSchemaMaker
factory
- PropertyKeyMaker through which the property key is createdvalue
- the value of the property. The default implementation does not use this parameter.public boolean ignoreUndefinedQueryTypes()
DefaultSchemaMaker
If this method returns true, then undefined types referred to in a JanusGraphVertexQuery
will be silently
ignored and an empty result set will be returned. If this method returns false, then usage of undefined types
in queries results in an IllegalArgumentException
.
ignoreUndefinedQueryTypes
in interface DefaultSchemaMaker
Copyright © 2012–2018. All rights reserved.