mirror of https://github.com/apache/lucene.git
SOLR-4517: make FieldType.properties protected for subclassing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3c8da0e99
commit
6e14a97ccf
|
@ -81,7 +81,7 @@ public abstract class FieldType extends FieldProperties {
|
|||
protected int trueProperties;
|
||||
/** properties explicitly set to false */
|
||||
protected int falseProperties;
|
||||
int properties;
|
||||
protected int properties;
|
||||
|
||||
|
||||
/** Returns true if fields of this type should be tokenized */
|
||||
|
@ -128,7 +128,7 @@ public abstract class FieldType extends FieldProperties {
|
|||
}
|
||||
|
||||
// Handle additional arguments...
|
||||
void setArgs(IndexSchema schema, Map<String,String> args) {
|
||||
protected void setArgs(IndexSchema schema, Map<String,String> args) {
|
||||
// default to STORED, INDEXED, OMIT_TF_POSITIONS and MULTIVALUED depending on schema version
|
||||
properties = (STORED | INDEXED);
|
||||
float schemaVersion = schema.getVersion();
|
||||
|
|
|
@ -75,7 +75,7 @@ public final class SchemaField extends FieldProperties {
|
|||
|
||||
public String getName() { return name; }
|
||||
public FieldType getType() { return type; }
|
||||
int getProperties() { return properties; }
|
||||
public int getProperties() { return properties; }
|
||||
|
||||
public boolean indexed() { return (properties & INDEXED)!=0; }
|
||||
public boolean stored() { return (properties & STORED)!=0; }
|
||||
|
|
Loading…
Reference in New Issue