Examples of toArray()


Examples of parquet.hadoop.metadata.ColumnPath.toArray()

        }
        parquet.format.ColumnMetaData metaData = columnChunk.meta_data;
        ColumnPath path = getPath(metaData);
        ColumnChunkMetaData column = ColumnChunkMetaData.get(
            path,
            messageType.getType(path.toArray()).asPrimitiveType().getPrimitiveTypeName(),
            CompressionCodecName.fromParquet(metaData.codec),
            fromFormatEncodings(metaData.encodings),
            metaData.data_page_offset,
            metaData.dictionary_page_offset,
            metaData.num_values,
View Full Code Here

Examples of pdp.scrabble.utility.Anagram.toArray()

  // Create all possible combinaison with letters
  Anagram ana = new Anagram(this.game, letters);

  // Show result
  Object[] str = ana.toArray();
  String selected = null;
  if (str.length > 0) {
      Object result = JOptionPane.showInputDialog(
        null, getGameLang("Choice"), letters,
        JOptionPane.INFORMATION_MESSAGE, null, str, str[0]);
View Full Code Here

Examples of primitive.collection.ByteList.toArray()

    ByteList blist = new ByteList();
    blist.addAll(r1.raw);
    blist.addAll(r2.raw);
    blist.addAll(r3.raw);

    byte [] raw = blist.toArray();
    ByteBuffer buf   = ByteBuffer.wrap(raw);

    Util.Settings settings = Util.settings();
    HTTPParser parser = new HTTPParser(r1.type);
   
View Full Code Here

Examples of railo.commons.lang.StringList.toArray()

        str=sl.next();
        int scope = VariableInterpreter.scopeString2Int(str);
        if(scope==Scope.SCOPE_UNDEFINED)sl.reset();
       
        // keys
        String[] arr=sl.toArray();
        ArrayUtil.trim(arr);
       
        // update first arg
        arg.setValue(LitDouble.toExprDouble(scope),"number");
       
View Full Code Here

Examples of webit.script.util.ByteArrayOutputStream.toArray()

        final Object result;
        if (current.isByteStream()) {
            ByteArrayOutputStream out = new ByteArrayOutputStream(256);
            context.out = new OutputStreamOut(out, (OutputStreamOut) current);
            result = srcExpr.execute(context);
            toExpr.setValue(context, out.toArray());
        } else {
            CharArrayWriter writer = new CharArrayWriter(256);
            context.out = current instanceof WriterOut
                    ? new WriterOut(writer, (WriterOut) current)
                    : new WriterOut(writer, context.encoding, context.template.engine.getCoderFactory());
View Full Code Here

Examples of webit.script.util.CharArrayWriter.toArray()

            CharArrayWriter writer = new CharArrayWriter(256);
            context.out = current instanceof WriterOut
                    ? new WriterOut(writer, (WriterOut) current)
                    : new WriterOut(writer, context.encoding, context.template.engine.getCoderFactory());
            result = srcExpr.execute(context);
            toExpr.setValue(context, writer.toArray());
        }
        context.out = current;
        return result;
    }
}
View Full Code Here

Examples of xbird.util.collections.IntArrayList.toArray()

        IntArrayList res = new IntArrayList((int) (len * 0.75));
        int code;
        for(int offset = 0; (code = decodeCharacter(binary, offset, 0, 0)) != EOF; offset += characterSize(code)) {
            res.add(code);
        }
        return res.toArray();
    }

    public static int[] decode(final byte[] binary) {
        return decode(binary, binary.length);
    }
View Full Code Here

Examples of xbird.util.collections.IntStack.toArray()

        if(pending.size() > 0) {
            typeStack.push(MATCH);
            patternStack.add(pending.toByteArray());
        }
        this._patterns = patternStack.toArray(new byte[patternStack.size()][]);
        this._types = typeStack.toArray();
    }

    @Override
    public boolean testValue(Value value) {
        boolean sw = value.startsWith(_operands[0]);
View Full Code Here

Examples of xbird.util.collections.LongQueue.toArray()

        for(long i = start; i <= end; i++) {
            if(!contains(i)) {
                list.add(i);
            }
        }
        return list.toArray();
    }

    // --------------------------------------------------

    @Override
View Full Code Here

Examples of xbird.util.collections.ints.IntArrayList.toArray()

        IntArrayList res = new IntArrayList((int) (len * 0.75));
        int code;
        for(int offset = 0; (code = decodeCharacter(binary, offset, 0, 0)) != EOF; offset += characterSize(code)) {
            res.add(code);
        }
        return res.toArray();
    }

    public static int[] decode(final byte[] binary) {
        return decode(binary, binary.length);
    }
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.