org.apache.nutch.indexer.field
Class FieldWritable
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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