Class BinarySnapshotLoader.DefaultLoadedSnapshot
java.lang.Object
org.impulsegraph.storage.csr.BinarySnapshotLoader.DefaultLoadedSnapshot
- All Implemented Interfaces:
AutoCloseable, BinarySnapshotLoader.LoadedSnapshot
- Enclosing class:
BinarySnapshotLoader
public static class BinarySnapshotLoader.DefaultLoadedSnapshot
extends Object
implements BinarySnapshotLoader.LoadedSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLoadedSnapshot(int magic, short version, GraphSnapshot graph, Map<Integer, BinarySnapshotLoader.LoadedDomain> domainsById, Map<String, BinarySnapshotLoader.LoadedDomain> domainsByName, Map<Integer, BinarySnapshotLoader.LoadedRelation> relationsById, Map<String, String> metadata) DefaultLoadedSnapshot(int magic, short version, GraphSnapshot graph, Map<Integer, BinarySnapshotLoader.LoadedDomain> domainsById, Map<String, BinarySnapshotLoader.LoadedDomain> domainsByName, Map<Integer, BinarySnapshotLoader.LoadedRelation> relationsById, Map<String, String> metadata, List<BinarySnapshotLoader.LoadedIndex> indices) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetDomain(int domainId) getMetadata(String key) getRelation(int relationId) longgraph()indices()intmagic()intlongshortversion()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BinarySnapshotLoader.LoadedSnapshot
getGraph, getRelationNames, getSha256Checksum
-
Constructor Details
-
DefaultLoadedSnapshot
public DefaultLoadedSnapshot(int magic, short version, GraphSnapshot graph, Map<Integer, BinarySnapshotLoader.LoadedDomain> domainsById, Map<String, BinarySnapshotLoader.LoadedDomain> domainsByName, Map<Integer, BinarySnapshotLoader.LoadedRelation> relationsById, Map<String, String> metadata) -
DefaultLoadedSnapshot
public DefaultLoadedSnapshot(int magic, short version, GraphSnapshot graph, Map<Integer, BinarySnapshotLoader.LoadedDomain> domainsById, Map<String, BinarySnapshotLoader.LoadedDomain> domainsByName, Map<Integer, BinarySnapshotLoader.LoadedRelation> relationsById, Map<String, String> metadata, List<BinarySnapshotLoader.LoadedIndex> indices)
-
-
Method Details
-
indices
- Specified by:
indicesin interfaceBinarySnapshotLoader.LoadedSnapshot
-
magic
public int magic()- Specified by:
magicin interfaceBinarySnapshotLoader.LoadedSnapshot
-
version
public short version()- Specified by:
versionin interfaceBinarySnapshotLoader.LoadedSnapshot
-
domainCount
public int domainCount()- Specified by:
domainCountin interfaceBinarySnapshotLoader.LoadedSnapshot
-
relationCount
public int relationCount()- Specified by:
relationCountin interfaceBinarySnapshotLoader.LoadedSnapshot
-
timestampMs
public long timestampMs()- Specified by:
timestampMsin interfaceBinarySnapshotLoader.LoadedSnapshot
-
globalFeatures
public long globalFeatures()- Specified by:
globalFeaturesin interfaceBinarySnapshotLoader.LoadedSnapshot
-
getDomain
- Specified by:
getDomainin interfaceBinarySnapshotLoader.LoadedSnapshot
-
getDomain
- Specified by:
getDomainin interfaceBinarySnapshotLoader.LoadedSnapshot
-
getRelation
- Specified by:
getRelationin interfaceBinarySnapshotLoader.LoadedSnapshot
-
domainsById
- Specified by:
domainsByIdin interfaceBinarySnapshotLoader.LoadedSnapshot
-
domainsByName
- Specified by:
domainsByNamein interfaceBinarySnapshotLoader.LoadedSnapshot
-
relationsById
- Specified by:
relationsByIdin interfaceBinarySnapshotLoader.LoadedSnapshot
-
graph
- Specified by:
graphin interfaceBinarySnapshotLoader.LoadedSnapshot
-
getMetadata
- Specified by:
getMetadatain interfaceBinarySnapshotLoader.LoadedSnapshot
-
getMetadataMap
- Specified by:
getMetadataMapin interfaceBinarySnapshotLoader.LoadedSnapshot
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-