org.apache.nutch.indexer.field
Class FieldWritable

java.lang.Object
  extended by org.apache.nutch.indexer.field.FieldWritable
All Implemented Interfaces:
Writable

public class FieldWritable
extends Object
implements Writable

A class that holds a single field of content to be placed into an index. This class has options type of content as well as for how the field is to be indexed.


Constructor Summary
FieldWritable()
           
FieldWritable(String name, String value, FieldType type, boolean indexed, boolean stored, boolean tokenized)
           
FieldWritable(String name, String value, FieldType type, float boost)
           
FieldWritable(String name, String value, FieldType type, float boost, boolean indexed, boolean stored, boolean tokenized)
           
 
Method Summary
 float getBoost()
           
 String getName()
           
 FieldType getType()
           
 String getValue()
           
 boolean isIndexed()
           
 boolean isStored()
           
 boolean isTokenized()
           
 void readFields(DataInput in)
           
 void setBoost(float boost)
           
 void setIndexed(boolean indexed)
           
 void setName(String name)
           
 void setStored(boolean stored)
           
 void setTokenized(boolean tokenized)
           
 void setType(FieldType type)
           
 void setValue(String value)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldWritable

public FieldWritable()

FieldWritable

public FieldWritable(String name,
                     String value,
                     FieldType type,
                     float boost)

FieldWritable

public FieldWritable(String name,
                     String value,
                     FieldType type,
                     boolean indexed,
                     boolean stored,
                     boolean tokenized)

FieldWritable

public FieldWritable(String name,
                     String value,
                     FieldType type,
                     float boost,
                     boolean indexed,
                     boolean stored,
                     boolean tokenized)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getValue

public String getValue()

setValue

public void setValue(String value)

getType

public FieldType getType()

setType

public void setType(FieldType type)

getBoost

public float getBoost()

setBoost

public void setBoost(float boost)

isIndexed

public boolean isIndexed()

setIndexed

public void setIndexed(boolean indexed)

isStored

public boolean isStored()

setStored

public void setStored(boolean stored)

isTokenized

public boolean isTokenized()

setTokenized

public void setTokenized(boolean tokenized)

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation