Package io.crate.analyze

Examples of io.crate.analyze.Id


        for (int i = 0; i < ROWS; i++) {
            Object[] object = getRandomObject();
            bulkArgs[i= object;

            String id = (String)object[0];
            Id esId = new Id(ImmutableList.of(new ColumnIdent("id")), ImmutableList.of(new BytesRef(id)), new ColumnIdent("id"), true);
            ids.put(id, esId.stringValue());
        }
        SQLBulkRequest request = new SQLBulkRequest(SINGLE_INSERT_SQL_STMT, bulkArgs);
        client().execute(SQLBulkAction.INSTANCE, request).actionGet();
        refresh(client());
        return ids;
View Full Code Here


        }
        return bulkShardProcessor.add(indexName, source, id, clusteredByValue);
    }

    public Id getId() {
        return new Id(
                primaryKeys,
                Lists.transform(idInputs, inputToBytesRef),
                routingIdent.orNull(),
                true
        );
View Full Code Here

TOP

Related Classes of io.crate.analyze.Id

Copyright © 2018 www.massapicom. 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.