-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
Signed-off-by: Bharathwaj G <[email protected]>
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.index.codec.composite; | ||
|
||
import org.opensearch.common.annotation.ExperimentalApi; | ||
import org.opensearch.index.mapper.CompositeMappedFieldType; | ||
|
||
/** | ||
* Field info details of composite index fields | ||
* | ||
* @opensearch.experimental | ||
*/ | ||
@ExperimentalApi | ||
public class CompositeIndexFieldInfo { | ||
private final String field; | ||
private final CompositeMappedFieldType.CompositeFieldType type; | ||
|
||
public CompositeIndexFieldInfo(String field, CompositeMappedFieldType.CompositeFieldType type) { | ||
this.field = field; | ||
this.type = type; | ||
} | ||
Check warning on line 27 in server/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java Codecov / codecov/patchserver/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java#L24-L27
|
||
|
||
public String getField() { | ||
return field; | ||
Check warning on line 30 in server/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java Codecov / codecov/patchserver/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java#L30
|
||
} | ||
|
||
public CompositeMappedFieldType.CompositeFieldType getType() { | ||
return type; | ||
Check warning on line 34 in server/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java Codecov / codecov/patchserver/src/main/java/org/opensearch/index/codec/composite/CompositeIndexFieldInfo.java#L34
|
||
} | ||
} |