Examples of load()


Examples of org.elasticsearch.common.yaml.snakeyaml.Yaml.load()

    @Override public Map<String, String> load(String source) throws IOException {
        // replace tabs with whitespace (yaml does not accept tabs, but many users might use it still...)
        source = source.replace("\t", "  ");
        Yaml yaml = new Yaml();
        Map<Object, Object> yamlMap = (Map<Object, Object>) yaml.load(source);
        StringBuilder sb = new StringBuilder();
        Map<String, String> settings = newHashMap();
        if (yamlMap == null) {
            return settings;
        }
View Full Code Here

Examples of org.elasticsearch.index.fielddata.IndexNumericFieldData.load()

            // make sure there are terms to filter on
            if (terms == null || terms.isEmpty()) return null;

            IndexNumericFieldData numericFieldData = (IndexNumericFieldData) fieldData;
            if (!numericFieldData.getNumericType().isFloatingPoint()) {
                final SortedNumericDocValues values = numericFieldData.load(context).getLongValues(); // load fielddata
                return new DocValuesDocIdSet(context.reader().maxDoc(), acceptDocs) {
                    @Override
                    protected boolean matchDoc(int doc) {
                        values.setDocument(doc);
                        final int numVals = values.count();
View Full Code Here

Examples of org.elasticsearch.index.fielddata.IndexParentChildFieldData.load()

        final long maxOrd;
        List<LeafReaderContext> leaves = searcher.getIndexReader().leaves();
        if (globalIfd == null || leaves.isEmpty()) {
            return Queries.newMatchNoDocsQuery().createWeight(searcher);
        } else {
            AtomicParentChildFieldData afd = globalIfd.load(leaves.get(0));
            SortedDocValues globalValues = afd.getOrdinalsValues(parentType);
            maxOrd = globalValues.getValueCount();
        }

        if (maxOrd == 0) {
View Full Code Here

Examples of org.encog.bot.browse.LoadWebPage.load()

  @Test
  public void testSimple() throws Throwable
  {
    LoadWebPage load = new LoadWebPage(null);
    WebPage page = load.load("a<b>b</b>c");
    TestCase.assertEquals(5,page.getData().size());
   
    TextDataUnit textDU;
    TagDataUnit tagDU;
   
View Full Code Here

Examples of org.encog.ml.data.buffer.BufferedMLDataSet.load()

   * @param f
   * @param data
   */
  public static void saveEGB(File f, MLDataSet data) {
    BufferedMLDataSet binary = new BufferedMLDataSet(f);
    binary.load(data);
    data.close();   
  }

  public static void explainErrorMSE(MLRegression method,
      MatrixMLDataSet training) {
View Full Code Here

Examples of org.encog.ml.data.buffer.BufferedNeuralDataSet.load()

    // create the binary file

    file.delete();
    BufferedNeuralDataSet training2 = new BufferedNeuralDataSet(file);
    training2.load(training);

    final long start = System.currentTimeMillis();
    final long stop = start + (10 * Evaluate.MILIS);
    int record = 0;

View Full Code Here

Examples of org.erlide.ui.prefs.plugin.CodeAssistPreferences.load()

        return string;
    }

    public void setToPrefs() {
        final CodeAssistPreferences prefs = new CodeAssistPreferences();
        prefs.load();
        fCompletionProposalAutoActivationCharacters = prefs.getErlangTriggers()
                .toCharArray();
        contentAssistant.setAutoActivationDelay(prefs.getDelayInMS());
        contentAssistant.enableAutoActivation(prefs.isAutoActivate());
        contentAssistant.setAutoActivationDelay(prefs.getDelayInMS());
View Full Code Here

Examples of org.ethereum.core.Wallet.load()

    @Test
    @Ignore
  public void testLoad1() throws TransformerException,
      ParserConfigurationException, IOException, SAXException {
        Wallet wallet = new Wallet();
        wallet.load();
    }

}
View Full Code Here

Examples of org.exolab.castor.jdo.Database.load()

    marshaller = new Marshaller( writer );
    marshaller.setMapping( _mapping );

    db.begin();
    marshaller.marshal( db.load( Product.class, new Integer( 4 ) ) );
    computerOql = db.getOQLQuery( "SELECT c FROM myapp.Computer c" );
    results = computerOql.execute();
    while( results.hasMore() )
      marshaller.marshal( results.next() );
    db.commit();
View Full Code Here

Examples of org.exolab.castor.persist.LockEngine.load()

                proposedObject.setEntity(objectInTx);
            }

            molder.setIdentity(this, objectInTx, identity);
            _tracker.trackObject(molder, oid, objectInTx);
            OID newoid = engine.load(this, oid, proposedObject,
                    suggestedAccessMode, _lockTimeout, results);
                   
            if (proposedObject.isExpanded()) {
                // Remove old OID from ObjectTracker
                _tracker.untrackObject(objectInTx);
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.