org.apache.solr.schema
Class SpatialPointVectorFieldType

java.lang.Object
  extended by org.apache.solr.schema.FieldProperties
      extended by org.apache.solr.schema.FieldType
          extended by org.apache.solr.schema.AbstractSpatialFieldType<PointVectorStrategy>
              extended by org.apache.solr.schema.SpatialPointVectorFieldType
All Implemented Interfaces:
SchemaAware, SpatialQueryable

public class SpatialPointVectorFieldType
extends AbstractSpatialFieldType<PointVectorStrategy>
implements SchemaAware

See Also:
PointVectorStrategy
WARNING: This API is experimental and might change in incompatible ways in the next release.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.solr.schema.FieldType
FieldType.DefaultAnalyzer
 
Field Summary
protected  String numberFieldName
           
 
Fields inherited from class org.apache.solr.schema.AbstractSpatialFieldType
argsParser, ctx, FILTER_PARAM, log, SCORE_PARAM
 
Fields inherited from class org.apache.solr.schema.FieldType
analyzer, ANALYZER, args, CHAR_FILTER, CHAR_FILTERS, CLASS_NAME, docValuesFormat, falseProperties, FILTER, FILTERS, INDEX, INDEX_ANALYZER, MULTI_TERM, MULTI_TERM_ANALYZER, POLY_FIELD_SEPARATOR, postingsFormat, properties, QUERY, QUERY_ANALYZER, queryAnalyzer, similarity, SIMILARITY, similarityFactory, TOKENIZER, trueProperties, TYPE, TYPE_NAME, typeName
 
Fields inherited from class org.apache.solr.schema.FieldProperties
BINARY, DOC_VALUES, INDEXED, MULTIVALUED, OMIT_NORMS, OMIT_POSITIONS, OMIT_TF_POSITIONS, REQUIRED, SORT_MISSING_FIRST, SORT_MISSING_LAST, STORE_OFFSETS, STORE_TERMOFFSETS, STORE_TERMPOSITIONS, STORE_TERMVECTORS, STORED, TOKENIZED
 
Constructor Summary
SpatialPointVectorFieldType()
           
 
Method Summary
 void inform(IndexSchema schema)
          Adds X and Y fields to the given schema for each field with this class as its field type.
protected  void init(IndexSchema schema, Map<String,String> args)
          subclasses should initialize themselves with the args provided and remove valid arguments.
protected  PointVectorStrategy newSpatialStrategy(String fieldName)
          Called from AbstractSpatialFieldType.getStrategy(String) upon first use by fieldName.
 
Methods inherited from class org.apache.solr.schema.AbstractSpatialFieldType
createField, createFields, createSpatialQuery, getFieldQuery, getRangeQuery, getSortField, getStrategy, getValueSource, isPolyField, parseShape, parseSpatialArgs, shapeToString, write
 
Methods inherited from class org.apache.solr.schema.FieldType
checkSchemaField, createField, getAnalyzer, getAnalyzerProperties, getClassArg, getDocValuesFormat, getIndexOptions, getNamedPropertyValues, getNonFieldPropertyArgs, getNumericType, getPostingsFormat, getQueryAnalyzer, getRewriteMethod, getSimilarity, getSimilarityFactory, getStringSort, getTypeName, hasProperty, indexedToReadable, indexedToReadable, isExplicitAnalyzer, isExplicitQueryAnalyzer, isMultiValued, isTokenized, multiValuedFieldCache, readableToIndexed, readableToIndexed, restrictProps, setAnalyzer, setArgs, setIsExplicitAnalyzer, setIsExplicitQueryAnalyzer, setQueryAnalyzer, setSimilarity, storedToIndexed, storedToReadable, toExternal, toInternal, toObject, toObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numberFieldName

protected String numberFieldName
Constructor Detail

SpatialPointVectorFieldType

public SpatialPointVectorFieldType()
Method Detail

init

protected void init(IndexSchema schema,
                    Map<String,String> args)
Description copied from class: FieldType
subclasses should initialize themselves with the args provided and remove valid arguments. leftover arguments will cause an exception. Common boolean properties have already been handled.

Overrides:
init in class AbstractSpatialFieldType<PointVectorStrategy>

inform

public void inform(IndexSchema schema)
Adds X and Y fields to the given schema for each field with this class as its field type. Informs the IndexSchema provided by the schema parameter of an event (e.g., a new FieldType was added, etc.

Specified by:
inform in interface SchemaAware
Parameters:
schema - The IndexSchema instance that inform of the update to.

newSpatialStrategy

protected PointVectorStrategy newSpatialStrategy(String fieldName)
Description copied from class: AbstractSpatialFieldType
Called from AbstractSpatialFieldType.getStrategy(String) upon first use by fieldName. }

Specified by:
newSpatialStrategy in class AbstractSpatialFieldType<PointVectorStrategy>


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.