This project has retired. For details please refer to its Attic page.
WebPage (Apache Gora 0.2 API)

org.apache.gora.examples.generated
Class WebPage

java.lang.Object
  extended by org.apache.gora.persistency.impl.PersistentBase
      extended by org.apache.gora.examples.generated.WebPage
All Implemented Interfaces:
Cloneable, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord, Persistent

public class WebPage
extends PersistentBase


Nested Class Summary
static class WebPage.Field
           
 
Field Summary
static String[] _ALL_FIELDS
           
static org.apache.avro.Schema _SCHEMA
           
 
Fields inherited from class org.apache.gora.persistency.impl.PersistentBase
datumReader, FIELD_MAP, FIELDS
 
Constructor Summary
WebPage()
           
WebPage(StateManager stateManager)
           
 
Method Summary
 void addToParsedContent(org.apache.avro.util.Utf8 element)
           
 Object get(int _field)
           
 ByteBuffer getContent()
           
 org.apache.avro.util.Utf8 getFromOutlinks(org.apache.avro.util.Utf8 key)
           
 Metadata getMetadata()
           
 Map<org.apache.avro.util.Utf8,org.apache.avro.util.Utf8> getOutlinks()
           
 org.apache.avro.generic.GenericArray<org.apache.avro.util.Utf8> getParsedContent()
           
 org.apache.avro.Schema getSchema()
           
 org.apache.avro.util.Utf8 getUrl()
           
 WebPage newInstance(StateManager stateManager)
          Constructs a new instance of the object with the given StateManager.
 void put(int _field, Object _value)
           
 void putToOutlinks(org.apache.avro.util.Utf8 key, org.apache.avro.util.Utf8 value)
           
 org.apache.avro.util.Utf8 removeFromOutlinks(org.apache.avro.util.Utf8 key)
           
 void setContent(ByteBuffer value)
           
 void setMetadata(Metadata value)
           
 void setUrl(org.apache.avro.util.Utf8 value)
           
 
Methods inherited from class org.apache.gora.persistency.impl.PersistentBase
clear, clearDirty, clearDirty, clearDirty, clearNew, clearReadable, clearReadable, clearReadable, clone, equals, getField, getFieldIndex, getFields, getStateManager, hashCode, isDirty, isDirty, isDirty, isFieldEqual, isNew, isReadable, isReadable, registerFields, setDirty, setDirty, setDirty, setNew, setReadable, setReadable, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_SCHEMA

public static final org.apache.avro.Schema _SCHEMA

_ALL_FIELDS

public static final String[] _ALL_FIELDS
Constructor Detail

WebPage

public WebPage()

WebPage

public WebPage(StateManager stateManager)
Method Detail

newInstance

public WebPage newInstance(StateManager stateManager)
Description copied from interface: Persistent
Constructs a new instance of the object with the given StateManager. This method is intended to be used by Gora framework.

Parameters:
stateManager - the StateManager to manage the persistent state of the object
Returns:
a new instance of the object

getSchema

public org.apache.avro.Schema getSchema()

get

public Object get(int _field)

put

public void put(int _field,
                Object _value)

getUrl

public org.apache.avro.util.Utf8 getUrl()

setUrl

public void setUrl(org.apache.avro.util.Utf8 value)

getContent

public ByteBuffer getContent()

setContent

public void setContent(ByteBuffer value)

getParsedContent

public org.apache.avro.generic.GenericArray<org.apache.avro.util.Utf8> getParsedContent()

addToParsedContent

public void addToParsedContent(org.apache.avro.util.Utf8 element)

getOutlinks

public Map<org.apache.avro.util.Utf8,org.apache.avro.util.Utf8> getOutlinks()

getFromOutlinks

public org.apache.avro.util.Utf8 getFromOutlinks(org.apache.avro.util.Utf8 key)

putToOutlinks

public void putToOutlinks(org.apache.avro.util.Utf8 key,
                          org.apache.avro.util.Utf8 value)

removeFromOutlinks

public org.apache.avro.util.Utf8 removeFromOutlinks(org.apache.avro.util.Utf8 key)

getMetadata

public Metadata getMetadata()

setMetadata

public void setMetadata(Metadata value)


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.