public class MetadataGraph
extends java.lang.Object
implements galileo.serialization.ByteSerializable
Constructor and Description |
---|
MetadataGraph() |
MetadataGraph(FeatureHierarchy hierarchy) |
MetadataGraph(galileo.serialization.SerializationInputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
addPath(Path<Feature,java.lang.String> path) |
java.util.List<Path<Feature,java.lang.String>> |
evaluateQuery(Query query) |
java.util.List<Path<Feature,java.lang.String>> |
evaluateQuery(Query query,
PayloadFilter<java.lang.String> filter) |
static MetadataGraph |
fromPaths(java.util.List<Path<Feature,java.lang.String>> paths) |
java.util.List<Path<Feature,java.lang.String>> |
getAllPaths() |
long |
numEdges() |
long |
numVertices() |
void |
reorient(FeatureHierarchy hierarchy)
Reorients this graph to match a given
FeatureHierarchy . |
void |
serialize(galileo.serialization.SerializationOutputStream out) |
java.lang.String |
toString() |
public MetadataGraph()
public MetadataGraph(FeatureHierarchy hierarchy)
@ByteSerializable.Deserialize public MetadataGraph(galileo.serialization.SerializationInputStream in) throws GraphException, java.io.IOException, galileo.serialization.SerializationException
GraphException
java.io.IOException
galileo.serialization.SerializationException
public void addPath(Path<Feature,java.lang.String> path) throws FeatureTypeMismatchException, GraphException
public void reorient(FeatureHierarchy hierarchy) throws FeatureTypeMismatchException, GraphException
FeatureHierarchy
. If the
FeatureHierarchy does not define positions for all of the Features
present in this graph, they will be assigned on a first-come,
first-served basis.hierarchy
- the new FeatureHierarchy this graph should take on.FeatureTypeMismatchException
GraphException
public java.util.List<Path<Feature,java.lang.String>> evaluateQuery(Query query, PayloadFilter<java.lang.String> filter)
public static MetadataGraph fromPaths(java.util.List<Path<Feature,java.lang.String>> paths)
public long numVertices()
public long numEdges()
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(galileo.serialization.SerializationOutputStream out) throws java.io.IOException
serialize
in interface galileo.serialization.ByteSerializable
java.io.IOException