Package org.elasticsearch.index

Examples of org.elasticsearch.index.VersionType


            String id = null;
            String routing = null;
            String parent = null;
            String opType = null;
            long version = 0;
            VersionType versionType = VersionType.INTERNAL;
            String percolate = null;

            String currentFieldName = null;
            while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
                if (token == XContentParser.Token.FIELD_NAME) {
View Full Code Here


        String id = String.valueOf(Math.abs(randomInt()));
        String routing = randomBoolean() ? randomAsciiOfLength(stringSize) : null;
        String[] fields = generateRandomStringArray(arraySize, stringSize, true);

        long version = Math.abs(randomLong());
        VersionType versionType = RandomPicks.randomFrom(new Random(), VersionType.values());

        FetchSourceContext fetchSourceContext;
        switch (randomIntBetween(0, 3)) {
            case 0 :
                fetchSourceContext = new FetchSourceContext(randomBoolean());
View Full Code Here

            String id = null;
            String routing = defaultRouting;
            String parent = null;
            List<String> fields = null;
            long version = Versions.MATCH_ANY;
            VersionType versionType = VersionType.INTERNAL;

            FetchSourceContext fetchSourceContext = null;

            while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
                if (token == XContentParser.Token.FIELD_NAME) {
View Full Code Here

                String parent = null;
                String timestamp = null;
                Long ttl = null;
                String opType = null;
                long version = Versions.MATCH_ANY;
                VersionType versionType = VersionType.INTERNAL;
                int retryOnConflict = 0;

                // at this stage, next token can either be END_OBJECT (and use default index and type, with auto generated id)
                // or START_OBJECT which will have another set of parameters
View Full Code Here

TOP

Related Classes of org.elasticsearch.index.VersionType

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.