com.amazon.carbonado.synthetic
Class SyntheticPropertyList

java.lang.Object
  extended by com.amazon.carbonado.synthetic.SyntheticPropertyList
Direct Known Subclasses:
SyntheticIndex, SyntheticKey

public abstract class SyntheticPropertyList
extends Object

Specification of a collection of properties which will participate in a key or index. Each property has its own direction specification.

Author:
Brian S O'Neill, Don Schneider

Method Summary
 void addProperty(String propertyName)
          Adds a property to this index, with an unspecified direction.
 void addProperty(String propertyName, Direction direction)
          Adds a property to this index, with the specified direction.
 Iterator<String> getProperties()
          Returns all the properties in this index, optionally prefixed with a '+' or '-' to indicate direction.
 int getPropertyCount()
          Returns the count of properties in this index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addProperty

public void addProperty(String propertyName)
Adds a property to this index, with an unspecified direction.

Parameters:
propertyName - name of property to add to index

addProperty

public void addProperty(String propertyName,
                        Direction direction)
Adds a property to this index, with the specified direction.

Parameters:
propertyName - name of property to add to index
direction - optional direction of property

getPropertyCount

public int getPropertyCount()
Returns the count of properties in this index.


getProperties

public Iterator<String> getProperties()
Returns all the properties in this index, optionally prefixed with a '+' or '-' to indicate direction.



Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.