org.elasticsearch.search.aggregations.support.CoreValuesSourceType Java Examples

The following examples show how to use org.elasticsearch.search.aggregations.support.CoreValuesSourceType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PathHierarchyAggregationBuilder.java    From elasticsearch-aggregation-pathhierarchy with MIT License 5 votes vote down vote up
/**
 * Read from a stream
 *
 */
public PathHierarchyAggregationBuilder(StreamInput in) throws IOException {
    super(in, CoreValuesSourceType.ANY);
    bucketCountThresholds = new PathHierarchyAggregator.BucketCountThresholds(in);
    separator = in.readString();
    minDocCount = in.readVLong();
    minDepth = in.readOptionalVInt();
    maxDepth = in.readOptionalVInt();
    keepBlankPath = in.readOptionalBoolean();
    depth = in.readOptionalVInt();
    order = InternalOrder.Streams.readOrder(in);
}
 
Example #2
Source File: DateHierarchyAggregationBuilder.java    From elasticsearch-aggregation-pathhierarchy with MIT License 5 votes vote down vote up
/**
 * Read from a stream
 *
 */
public DateHierarchyAggregationBuilder(StreamInput in) throws IOException {
    super(in, CoreValuesSourceType.ANY);
    bucketCountThresholds = new DateHierarchyAggregator.BucketCountThresholds(in);
    minDocCount = in.readVLong();
    interval = in.readString();
    order = InternalOrder.Streams.readOrder(in);
    timeZone = in.readOptionalZoneId();
}
 
Example #3
Source File: GeoShapeBuilder.java    From elasticsearch-plugin-geoshape with MIT License 5 votes vote down vote up
/**
 * Read from a stream
 *
 */
public GeoShapeBuilder(StreamInput in) throws IOException {
    super(in, CoreValuesSourceType.ANY);
    bucketCountThresholds = new GeoShapeAggregator.BucketCountThresholds(in);
    must_simplify = in.readBoolean();
    output_format = InternalGeoShape.OutputFormat.valueOf(in.readString());
    simplify_zoom = in.readInt();
    simplify_algorithm = GeoShape.Algorithm.valueOf(in.readString());
}
 
Example #4
Source File: GeoPointClusteringAggregationBuilder.java    From elasticsearch-aggregation-geoclustering with Apache License 2.0 5 votes vote down vote up
/**
 * Read from a stream.
 */
public GeoPointClusteringAggregationBuilder(StreamInput in) throws IOException {
    super(in, CoreValuesSourceType.GEOPOINT, ValueType.GEOPOINT);
    zoom = in.readInt();
    radius = in.readInt();
    extent = in.readInt();
    ratio = in.readDouble();
    requiredSize = in.readVInt();
    shardSize = in.readVInt();
}
 
Example #5
Source File: PathHierarchyAggregationBuilder.java    From elasticsearch-aggregation-pathhierarchy with MIT License 4 votes vote down vote up
private PathHierarchyAggregationBuilder(String name, ValueType valueType) {
    super(name, CoreValuesSourceType.ANY, valueType);
}
 
Example #6
Source File: DateHierarchyAggregationBuilder.java    From elasticsearch-aggregation-pathhierarchy with MIT License 4 votes vote down vote up
private DateHierarchyAggregationBuilder(String name, ValueType valueType) {
    super(name, CoreValuesSourceType.ANY, valueType);
}
 
Example #7
Source File: GeoShapeBuilder.java    From elasticsearch-plugin-geoshape with MIT License 4 votes vote down vote up
private GeoShapeBuilder(String name, ValueType valueType) {
    super(name, CoreValuesSourceType.ANY, valueType);
}
 
Example #8
Source File: GeoPointClusteringAggregationBuilder.java    From elasticsearch-aggregation-geoclustering with Apache License 2.0 4 votes vote down vote up
public GeoPointClusteringAggregationBuilder(String name) {
    super(name, CoreValuesSourceType.GEOPOINT, ValueType.GEOPOINT);
}