mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Remove dead code.
This commit is contained in:
parent
80bb46b517
commit
ce4af4be42
@ -77,19 +77,6 @@ public class IdFieldMapper extends MetadataFieldMapper {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Builder extends MetadataFieldMapper.Builder<Builder, IdFieldMapper> {
|
||||
|
||||
public Builder(MappedFieldType existing) {
|
||||
super(Defaults.NAME, existing == null ? Defaults.FIELD_TYPE : existing, Defaults.FIELD_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IdFieldMapper build(BuilderContext context) {
|
||||
setupFieldType(context);
|
||||
return new IdFieldMapper(fieldType, context.indexSettings());
|
||||
}
|
||||
}
|
||||
|
||||
public static class TypeParser implements MetadataFieldMapper.TypeParser {
|
||||
@Override
|
||||
public MetadataFieldMapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
|
||||
|
@ -73,19 +73,6 @@ public class TypeFieldMapper extends MetadataFieldMapper {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Builder extends MetadataFieldMapper.Builder<Builder, TypeFieldMapper> {
|
||||
|
||||
public Builder(MappedFieldType existing) {
|
||||
super(Defaults.NAME, existing == null ? Defaults.FIELD_TYPE : existing, Defaults.FIELD_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TypeFieldMapper build(BuilderContext context) {
|
||||
fieldType.setName(buildFullName(context));
|
||||
return new TypeFieldMapper(fieldType, context.indexSettings());
|
||||
}
|
||||
}
|
||||
|
||||
public static class TypeParser implements MetadataFieldMapper.TypeParser {
|
||||
@Override
|
||||
public MetadataFieldMapper.Builder parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
|
||||
|
@ -71,19 +71,6 @@ public class UidFieldMapper extends MetadataFieldMapper {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Builder extends MetadataFieldMapper.Builder<Builder, UidFieldMapper> {
|
||||
|
||||
public Builder(MappedFieldType existing) {
|
||||
super(Defaults.NAME, existing == null ? Defaults.FIELD_TYPE : existing, Defaults.FIELD_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public UidFieldMapper build(BuilderContext context) {
|
||||
setupFieldType(context);
|
||||
return new UidFieldMapper(fieldType, defaultFieldType, context.indexSettings());
|
||||
}
|
||||
}
|
||||
|
||||
public static class TypeParser implements MetadataFieldMapper.TypeParser {
|
||||
@Override
|
||||
public MetadataFieldMapper.Builder<?, ?> parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
|
||||
|
@ -54,18 +54,6 @@ public class VersionFieldMapper extends MetadataFieldMapper {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Builder extends MetadataFieldMapper.Builder<Builder, VersionFieldMapper> {
|
||||
|
||||
public Builder() {
|
||||
super(Defaults.NAME, Defaults.FIELD_TYPE, Defaults.FIELD_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public VersionFieldMapper build(BuilderContext context) {
|
||||
return new VersionFieldMapper(context.indexSettings());
|
||||
}
|
||||
}
|
||||
|
||||
public static class TypeParser implements MetadataFieldMapper.TypeParser {
|
||||
@Override
|
||||
public MetadataFieldMapper.Builder<?, ?> parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {
|
||||
|
@ -302,26 +302,6 @@ public class CardinalityAggregator extends NumericMetricsAggregator.SingleValue
|
||||
|
||||
public abstract long valueAt(int index);
|
||||
|
||||
/**
|
||||
* Return a {@link MurmurHash3Values} instance that returns each value as its hash.
|
||||
*/
|
||||
public static MurmurHash3Values cast(final SortedNumericDocValues values) {
|
||||
return new MurmurHash3Values() {
|
||||
@Override
|
||||
public void setDocument(int docId) {
|
||||
values.setDocument(docId);
|
||||
}
|
||||
@Override
|
||||
public int count() {
|
||||
return values.count();
|
||||
}
|
||||
@Override
|
||||
public long valueAt(int index) {
|
||||
return values.valueAt(index);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a {@link MurmurHash3Values} instance that computes hashes on the fly for each double value.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user