Class Derived

java.lang.Object
com.yahoo.schema.derived.Derived
Direct Known Subclasses:
AttributeFields, ImportedFields, IndexInfo, IndexingScript, IndexSchema, Juniperrc, RankProfileList, SchemaInfo, Summaries, SummaryClass, VsmFields, VsmSummary

public abstract class Derived extends Object
Superclass of all derived configurations
Author:
bratseth
  • Constructor Details

    • Derived

      public Derived()
    • Derived

      public Derived(String name)
  • Method Details

    • getName

      public String getName()
    • setName

      protected final void setName(String name)
    • derive

      protected void derive(Schema schema)
      Derives the content of this configuration. This default calls derive(Document) for each document and derive(SDField) for each search definition level field AND sets the name of this to the name of the input search definition
    • derive

      protected void derive(SDDocumentType document, Schema schema)
      Derives the content of this configuration. This default calls derive(SDField) for each document field
    • derive

      protected void derive(ImmutableSDField field, Schema schema)
      Derives the content of this configuration. This default does nothing.
    • derive

      protected void derive(Index index, Schema schema)
      Derives the content of this configuration. This default does nothing.
    • getDerivedName

      protected abstract String getDerivedName()
    • getIndex

      protected String getIndex(int number, boolean labels)
      Returns the value of getName if true, the given number as a string otherwise
    • export

      protected void export(String toDirectory, com.yahoo.config.ConfigInstance cfg) throws IOException
      Throws:
      IOException