Class FacetPathMappingImpl

java.lang.Object
org.aksw.jenax.facete.treequery2.impl.FacetPathMappingImpl
All Implemented Interfaces:
FacetPathMapping

public class FacetPathMappingImpl extends Object implements FacetPathMapping
Mapping of facet paths to hashes. In case of hash clashes a sequence number is appended to the hash codes.
  • 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> pathToHashCode
      So 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

      public String allocate(org.aksw.jenax.path.core.FacetPath rawFacetPath)
      Specified by:
      allocate in interface FacetPathMapping
    • toString

      public static String toString(com.google.common.hash.HashCode hashCode)
    • hashCodeToString

      public String hashCodeToString(com.google.common.hash.HashCode hashCode)
    • resolveVar

      public static ScopedVar resolveVar(FacetPathMapping facetPathMapping, ScopedFacetPath sfp)
    • 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)