Examples of LeafNode


Examples of lupos.compression.huffman.tree.LeafNode

   
    Heap<HeapEntry> heap = new SequentialHeap<HeapEntry>(occurrences, true);
   
    for(int i=0; i<frequency.length; i++){
      if(frequency[i]>0){
        heap.add(new HeapEntry(frequency[i], new LeafNode(min+i)));
      }
    }

    if(this.current<HuffmanOutputStream.blocksize){
      // consider also EOF!
View Full Code Here

Examples of org.apache.directory.api.ldap.model.filter.LeafNode

     */
    private ExprNode removeObjectClass( ExprNode node )
    {
        if ( node instanceof LeafNode )
        {
            LeafNode leafNode = ( LeafNode ) node;

            if ( leafNode.getAttributeType() == OBJECT_CLASS_AT )
            {
                if ( leafNode instanceof PresenceNode )
                {
                    // We can safely remove the node and return an undefined node
                    return ObjectClassNode.OBJECT_CLASS_NODE;
View Full Code Here

Examples of org.apache.directory.api.ldap.model.filter.LeafNode

             * scan count is not specified by the implementation.
             */
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            if ( node instanceof PresenceNode )
            {
                count = getPresenceScan( ( PresenceNode ) leaf );
            }
View Full Code Here

Examples of org.apache.directory.shared.ldap.filter.LeafNode

             * scan count is not specified by the implementation.
             */
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            if ( node instanceof PresenceNode )
            {
                count = getPresenceScan( ( PresenceNode ) leaf );
            }
View Full Code Here

Examples of org.apache.directory.shared.ldap.filter.LeafNode

        for ( ExprNode child : children )
        {
            if ( child instanceof LeafNode )
            {
                LeafNode leaf = ( LeafNode ) child;

                try
                {
                    if ( schemaManager.getAttributeTypeRegistry().hasDescendants( leaf.getAttribute() ) )
                    {
                        // create a new OR node to hold all descendent forms
                        // add to this node the generalized leaf node and
                        // replace the old leaf with the new OR branch node
                        BranchNode orNode = new OrNode();
                        orNode.getChildren().add( leaf );
                        children.set( childNumber++, orNode );

                        // iterate through descendants adding them to the orNode
                        Iterator<AttributeType> descendants = schemaManager.getAttributeTypeRegistry().descendants( leaf.getAttribute() );

                        while ( descendants.hasNext() )
                        {
                            LeafNode newLeaf = null;
                            AttributeType descendant = descendants.next();

                            if ( leaf instanceof PresenceNode )
                            {
                                newLeaf = new PresenceNode( descendant.getOid() );
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.filter.LeafNode

                return branch;
            }
            else
            {
                // Transform PRESENT or ATTRIBUTE_VALUE_ASSERTION
                LeafNode branch = null;

                if ( filter instanceof PresentFilter )
                {
                    branch = new PresenceNode( ( ( PresentFilter ) filter ).getAttributeDescription() );
                }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.parser.ExpressionTree.LeafNode

            }



                    LeafNode node = new LeafNode();
                    node.keyName = key.getText();
                    node.value = val;
                    node.operator = op;
                    node.isReverseOrder = isReverseOrder;
View Full Code Here

Examples of org.apache.ldap.common.filter.LeafNode

            throw new IllegalArgumentException( "Cannot produce enumeration "
                + "on an AssertionNode" );
        }
        else if ( node.isLeaf() )
        {
            LeafNode leaf = ( LeafNode ) node;

            switch( leaf.getAssertionType() )
            {
            case( LeafNode.APPROXIMATE ):
                list = enumEquality( ( SimpleNode ) node );
                break;
            case( LeafNode.EQUALITY ):
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LeafNode

        assertNotNull(identity);
        assertNotNull(feature);
    }
   
    public void testInfoRequestForANode() throws Exception {
        root.add(new LeafNode(serviceConfiguration, "news", "News", client));

        DefaultDiscoInfoStanzaGenerator sg = (DefaultDiscoInfoStanzaGenerator)getDefaultStanzaGenerator();
        Stanza stanza = sg.getStanza(client, pubsubService.getBareJID(), "id123","news");

        ResponseStanzaContainer result = sendStanza(stanza, true);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0060_pubsub.model.LeafNode

    @Override
    public void setUp() throws Exception {
        super.setUp();
       
        n1 = new LeafNode(serviceConfiguration, "Node1", "Node 1 used for testing purposes", client);
        n2 = new LeafNode(serviceConfiguration, "Node2", "Node 2 used for testing purposes", client);
        n3 = new LeafNode(serviceConfiguration, "Node3", "Node 3 used for testing purposes", client);
       
        root.add(n1);
        root.add(n2);
        root.add(n3);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.