Class MOAFilter.FixedInstanceStream

  • All Implemented Interfaces:
    Serializable, moa.capabilities.CapabilitiesHandler, moa.MOAObject, moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>, moa.streams.InstanceStream
    Enclosing class:
    MOAFilter

    public class MOAFilter.FixedInstanceStream
    extends moa.AbstractMOAObject
    implements moa.streams.InstanceStream
    See Also:
    Serialized Form
    • Field Detail

      • m_Single

        protected boolean m_Single
      • m_Instance

        protected com.yahoo.labs.samoa.instances.Instance m_Instance
      • m_Instances

        protected com.yahoo.labs.samoa.instances.Instances m_Instances
      • m_Left

        protected int m_Left
    • Constructor Detail

      • FixedInstanceStream

        public FixedInstanceStream()
    • Method Detail

      • setData

        public void setData​(com.yahoo.labs.samoa.instances.Instance instance)
      • setData

        public void setData​(com.yahoo.labs.samoa.instances.Instances instances)
      • getHeader

        public com.yahoo.labs.samoa.instances.InstancesHeader getHeader()
        Specified by:
        getHeader in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • estimatedRemainingInstances

        public long estimatedRemainingInstances()
        Specified by:
        estimatedRemainingInstances in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • hasMoreInstances

        public boolean hasMoreInstances()
        Specified by:
        hasMoreInstances in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • nextInstance

        public moa.core.Example<com.yahoo.labs.samoa.instances.Instance> nextInstance()
        Specified by:
        nextInstance in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • isRestartable

        public boolean isRestartable()
        Specified by:
        isRestartable in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • restart

        public void restart()
        Specified by:
        restart in interface moa.streams.ExampleStream<moa.core.Example<com.yahoo.labs.samoa.instances.Instance>>
      • getDescription

        public void getDescription​(StringBuilder sb,
                                   int indent)
        Specified by:
        getDescription in interface moa.MOAObject