Class FacetPathMappingImpl
java.lang.Object
org.aksw.jenax.facete.treequery2.impl.FacetPathMappingImpl
- All Implemented Interfaces:
FacetPathMapping
Mapping of facet paths to hashes. In case of hash clashes a sequence number
is appended to the hash codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.io.BaseEncodingstatic final com.google.common.hash.HashFunctionprotected com.google.common.io.BaseEncodingprotected com.google.common.hash.HashFunctionprotected com.google.common.collect.BiMap<org.aksw.jenax.path.core.FacetPath,com.google.common.hash.HashCode> So far allocated mappings -
Constructor Summary
ConstructorsConstructorDescriptionDefault construction using Guava's Hashing.murmur3_32_fixed() and BaseEncoding.base32().omitPadding().FacetPathMappingImpl(com.google.common.hash.HashFunction hashing, com.google.common.io.BaseEncoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionallocate(org.aksw.jenax.path.core.FacetPath rawFacetPath) com.google.common.io.BaseEncodingcom.google.common.hash.HashFunctioncom.google.common.collect.BiMap<org.aksw.jenax.path.core.FacetPath,com.google.common.hash.HashCode> hashCodeToString(com.google.common.hash.HashCode hashCode) byte[]increment(byte[] arr) static ScopedVarresolveVar(FacetPathMapping facetPathMapping, String baseScopeName, org.apache.jena.sparql.core.Var rootVar, org.aksw.jenax.path.core.FacetPath facetPath) static ScopedVarresolveVar(FacetPathMapping facetPathMapping, VarScope scope, org.aksw.jenax.path.core.FacetPath facetPath) static ScopedVarresolveVar(FacetPathMapping facetPathMapping, ScopedFacetPath sfp) static StringtoString(com.google.common.hash.HashCode hashCode)
-
Field Details
-
DEFAULT_ENCODING
public static final com.google.common.io.BaseEncoding DEFAULT_ENCODING -
DEFAULT_HASH_FUNCTION
public static final com.google.common.hash.HashFunction DEFAULT_HASH_FUNCTION -
pathToHashCode
protected com.google.common.collect.BiMap<org.aksw.jenax.path.core.FacetPath,com.google.common.hash.HashCode> pathToHashCodeSo far allocated mappings -
hashing
protected com.google.common.hash.HashFunction hashing -
encoding
protected com.google.common.io.BaseEncoding encoding
-
-
Constructor Details
-
FacetPathMappingImpl
public FacetPathMappingImpl()Default construction using Guava's Hashing.murmur3_32_fixed() and BaseEncoding.base32().omitPadding(). -
FacetPathMappingImpl
public FacetPathMappingImpl(com.google.common.hash.HashFunction hashing, com.google.common.io.BaseEncoding encoding)
-
-
Method Details
-
getPathToName
public com.google.common.collect.BiMap<org.aksw.jenax.path.core.FacetPath,com.google.common.hash.HashCode> getPathToName() -
getEncoding
public com.google.common.io.BaseEncoding getEncoding() -
getHashing
public com.google.common.hash.HashFunction getHashing() -
increment
public byte[] increment(byte[] arr) -
allocate
- Specified by:
allocatein interfaceFacetPathMapping
-
toString
-
hashCodeToString
-
resolveVar
-
resolveVar
public static ScopedVar resolveVar(FacetPathMapping facetPathMapping, VarScope scope, org.aksw.jenax.path.core.FacetPath facetPath) -
resolveVar
public static ScopedVar resolveVar(FacetPathMapping facetPathMapping, String baseScopeName, org.apache.jena.sparql.core.Var rootVar, org.aksw.jenax.path.core.FacetPath facetPath)
-