Examples of BitSet


Examples of org.apache.phoenix.util.BitSet

        boolean indexWALDisabled = index.isWALDisabled();
        int indexPosOffset = (index.getBucketNum() == null ? 0 : 1) + (this.isMultiTenant ? 1 : 0) + (this.viewIndexId == null ? 0 : 1);
        int nIndexColumns = index.getColumns().size() - indexPosOffset;
        int nIndexPKColumns = index.getPKColumns().size() - indexPosOffset;
        this.rowKeyMetaData = newRowKeyMetaData(nIndexPKColumns);
        BitSet bitSet = this.rowKeyMetaData.getViewConstantColumnBitSet();

        int dataPosOffset = (isDataTableSalted ? 1 : 0) + (this.isMultiTenant ? 1 : 0);
        int nDataPKColumns = dataRowKeySchema.getFieldCount() - dataPosOffset;
        // For indexes on views, we need to remember which data columns are "constants"
        // These are the values in a VIEW where clause. For these, we don't put them in the
        // index, as they're the same for every row in the index.
        if (dataTable.getType() == PTableType.VIEW) {
            List<PColumn>dataPKColumns = dataTable.getPKColumns();
            for (int i = dataPosOffset; i < dataPKColumns.size(); i++) {
                PColumn dataPKColumn = dataPKColumns.get(i);
                if (dataPKColumn.getViewConstant() != null) {
                    bitSet.set(i);
                    nDataPKColumns--;
                }
            }
        }
        this.indexTableName = indexTableName;
View Full Code Here

Examples of org.fastlsh.util.BitSet

      }
   
    @Test
    public void stuff()
    {
        BitSet b1 = new BitSet(64);
        b1.set(0);         
        BitSet b2 = new BitSet(64);
        b2.set(1);       
        BitSet b3 = new BitSet(64);
        b3.set(2);       
        BitSet b4 = new BitSet(64);
        b4.set(0);         
        b4.set(63);         
        long l1 = b1.bits[0];
        long l2 = b2.bits[0];
        long l3 = b3.bits[0];
        long l4 = b4.bits[0];
View Full Code Here

Examples of org.joni.BitSet

    }

    // and_cclass
    public void and(CClassNode other, Encoding enc) {
        boolean not1 = isNot();
        BitSet bsr1 = bs;
        CodeRangeBuffer buf1 = mbuf;
        boolean not2 = other.isNot();
        BitSet bsr2 = other.bs;
        CodeRangeBuffer buf2 = other.mbuf;

        if (not1) {
            BitSet bs1 = new BitSet();
            bsr1.invertTo(bs1);
            bsr1 = bs1;
        }

        if (not2) {
            BitSet bs2 = new BitSet();
            bsr2.invertTo(bs2);
            bsr2 = bs2;
        }

        bsr1.and(bsr2);
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.BitSet

     * @return The position of the bitset in the list.
     */
    protected int markBitsetForGen(BitSet p) {
        // Is the bitset (or an identical one) already marked for gen?
        for (int i = 0; i < bitsetsUsed.size(); i++) {
            BitSet set = (BitSet)bitsetsUsed.elementAt(i);
            if (p.equals(set)) {
                // Use the identical one already stored
                return i;
            }
        }
View Full Code Here

Examples of org.rascalmpl.parser.gtd.util.BitSet

    int edgesMapSize = edgesMap.size();
    int possibleMaxSize = edgesMapSize + potentialNewEdges;
    if(prefixesMap == null){
      prefixesMap = new ArrayList[possibleMaxSize];
     
      propagatedPrefixes = new BitSet();
    }else{
      if(prefixesMap.length < possibleMaxSize){
        ArrayList<Link>[] oldPrefixesMap = prefixesMap;
        prefixesMap = new ArrayList[possibleMaxSize];
        System.arraycopy(oldPrefixesMap, 0, prefixesMap, 0, edgesMapSize);
      }
     
      if(propagatedPrefixes == null){
        propagatedPrefixes = new BitSet();
      }else{
        propagatedPrefixes.enlargeTo(possibleMaxSize);
      }
    }
   
View Full Code Here

Examples of persistence.antlr.collections.impl.BitSet

     */
    protected String filterRule = null;

    LexerGrammar(String className_, Tool tool_, String superClass) {
        super(className_, tool_, superClass);
        charVocabulary = new BitSet();

        // Lexer usually has no default error handling
        defaultErrorHandler = false;
    }
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.