Package org.elasticsearch.index.mapper
Class LegacyGeoShapeFieldMapper.GeoShapeFieldType
- java.lang.Object
-
- org.apache.lucene.document.FieldType
-
- org.elasticsearch.index.mapper.MappedFieldType
-
- org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
- org.elasticsearch.index.mapper.LegacyGeoShapeFieldMapper.GeoShapeFieldType
-
- All Implemented Interfaces:
org.apache.lucene.index.IndexableFieldType
- Enclosing class:
- LegacyGeoShapeFieldMapper
public static final class LegacyGeoShapeFieldMapper.GeoShapeFieldType extends BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.Relation
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
orientation
-
-
Constructor Summary
Constructors Modifier Constructor Description GeoShapeFieldType()protectedGeoShapeFieldType(LegacyGeoShapeFieldMapper.GeoShapeFieldType ref)
-
Method Summary
Modifier and Type Method Description voidcheckCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)Checks for any conflicts between this field type and other.LegacyGeoShapeFieldMapper.GeoShapeFieldTypeclone()org.apache.lucene.spatial.prefix.PrefixTreeStrategydefaultPrefixTreeStrategy()doubledistanceErrorPct()booleanequals(java.lang.Object o)inthashCode()booleanpointsOnly()doubleprecisionInMeters()org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolvePrefixTreeStrategy(java.lang.String strategyName)org.apache.lucene.spatial.prefix.PrefixTreeStrategyresolvePrefixTreeStrategy(SpatialStrategy strategy)voidsetDefaultDistanceErrorPct(double defaultDistanceErrorPct)voidsetDistanceErrorPct(double distanceErrorPct)voidsetPointsOnly(boolean pointsOnly)voidsetPrecisionInMeters(double precisionInMeters)voidsetStrategy(SpatialStrategy strategy)voidsetTree(java.lang.String tree)voidsetTreeLevels(int treeLevels)SpatialStrategystrategy()java.lang.Stringtree()inttreeLevels()-
Methods inherited from class org.elasticsearch.index.mapper.BaseGeoShapeFieldMapper.BaseGeoShapeFieldType
existsQuery, orientation, setOrientation, termQuery, typeName
-
Methods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, multiPhraseQuery, name, nullValue, nullValueAsString, nullValueQuery, phrasePrefixQuery, phraseQuery, prefixQuery, queryStringTermQuery, rangeQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, spanPrefixQuery, termsQuery, valueForDisplay, wildcardQuery
-
Methods inherited from class org.apache.lucene.document.FieldType
checkIfFrozen, docValuesType, freeze, getAttributes, indexOptions, omitNorms, pointDataDimensionCount, pointIndexDimensionCount, pointNumBytes, putAttribute, setDimensions, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
-
-
-
-
Constructor Detail
-
GeoShapeFieldType
public GeoShapeFieldType()
-
GeoShapeFieldType
protected GeoShapeFieldType(LegacyGeoShapeFieldMapper.GeoShapeFieldType ref)
-
-
Method Detail
-
clone
public LegacyGeoShapeFieldMapper.GeoShapeFieldType clone()
- Specified by:
clonein classMappedFieldType
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
checkCompatibility
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
Description copied from class:MappedFieldTypeChecks for any conflicts between this field type and other. If strict is true, all properties must be equal. Otherwise, only properties which must never change in an index are checked.- Overrides:
checkCompatibilityin classBaseGeoShapeFieldMapper.BaseGeoShapeFieldType
-
tree
public java.lang.String tree()
-
setTree
public void setTree(java.lang.String tree)
-
strategy
public SpatialStrategy strategy()
-
setStrategy
public void setStrategy(SpatialStrategy strategy)
-
pointsOnly
public boolean pointsOnly()
-
setPointsOnly
public void setPointsOnly(boolean pointsOnly)
-
treeLevels
public int treeLevels()
-
setTreeLevels
public void setTreeLevels(int treeLevels)
-
precisionInMeters
public double precisionInMeters()
-
setPrecisionInMeters
public void setPrecisionInMeters(double precisionInMeters)
-
distanceErrorPct
public double distanceErrorPct()
-
setDistanceErrorPct
public void setDistanceErrorPct(double distanceErrorPct)
-
setDefaultDistanceErrorPct
public void setDefaultDistanceErrorPct(double defaultDistanceErrorPct)
-
defaultPrefixTreeStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy defaultPrefixTreeStrategy()
-
resolvePrefixTreeStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolvePrefixTreeStrategy(SpatialStrategy strategy)
-
resolvePrefixTreeStrategy
public org.apache.lucene.spatial.prefix.PrefixTreeStrategy resolvePrefixTreeStrategy(java.lang.String strategyName)
-
-