Class TripleFilter

  • All Implemented Interfaces:
    org.metafacture.framework.LifeCycle, org.metafacture.framework.ObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>, org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>, org.metafacture.framework.Receiver, org.metafacture.framework.Sender<org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>

    @Description("Filters triple. The  patterns for subject, predicate and object are disjunctive.")
    @In(org.metafacture.framework.objects.Triple.class)
    @Out(org.metafacture.framework.objects.Triple.class)
    @FluxCommand("filter-triples")
    public final class TripleFilter
    extends org.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>
    Filters triples. The patterns for subject, predicate and object are disjunctive.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getObjectPattern()
      Gets the pattern of the object filter.
      java.lang.String getPredicatePattern()
      Gets the pattern of the predicate filter.
      java.lang.String getSubjectPattern()
      Gets the pattern of the subject filter.
      boolean isPassMatches()
      Checks whether matches passes.
      void process​(org.metafacture.framework.objects.Triple obj)  
      void setObjectPattern​(java.lang.String pattern)
      Sets a pattern to filter objects.
      void setPassMatches​(boolean passMatches)
      Flags whether matches should pass.
      void setPredicatePattern​(java.lang.String pattern)
      Gets the pattern of the predicate filter.
      void setSubjectPattern​(java.lang.String pattern)
      Gets the pattern of the subject filter.
      • Methods inherited from class org.metafacture.framework.helpers.DefaultSender

        closeStream, getReceiver, isClosed, onCloseStream, onResetStream, onSetReceiver, resetStream, setReceiver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.metafacture.framework.LifeCycle

        closeStream, resetStream
      • Methods inherited from interface org.metafacture.framework.Sender

        setReceiver
    • Constructor Detail

      • TripleFilter

        public TripleFilter()
        Creates an instance of TripleFilter.
    • Method Detail

      • getSubjectPattern

        public java.lang.String getSubjectPattern()
        Gets the pattern of the subject filter.
        Returns:
        the pattern of the subject filter
      • setSubjectPattern

        public void setSubjectPattern​(java.lang.String pattern)
        Gets the pattern of the subject filter.
        Parameters:
        pattern - the pattern of the subject filter
      • getPredicatePattern

        public java.lang.String getPredicatePattern()
        Gets the pattern of the predicate filter.
        Returns:
        the pattern of the predicate filter
      • setPredicatePattern

        public void setPredicatePattern​(java.lang.String pattern)
        Gets the pattern of the predicate filter.
        Parameters:
        pattern - the pattern of the predicate filter
      • getObjectPattern

        public java.lang.String getObjectPattern()
        Gets the pattern of the object filter.
        Returns:
        the pattern of the object filter
      • setObjectPattern

        public void setObjectPattern​(java.lang.String pattern)
        Sets a pattern to filter objects.
        Parameters:
        pattern - the pattern
      • isPassMatches

        public boolean isPassMatches()
        Checks whether matches passes.
        Returns:
        true if matches should pass
      • setPassMatches

        public void setPassMatches​(boolean passMatches)
        Flags whether matches should pass.
        Parameters:
        passMatches - true if matches should pass, otherwise matches don't pass
      • process

        public void process​(org.metafacture.framework.objects.Triple obj)
        Specified by:
        process in interface org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>
        Overrides:
        process in class org.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>