org.xcmis.search.content
Class InMemoryTable

java.lang.Object
  extended by org.xcmis.search.content.InMemoryTable
All Implemented Interfaces:
Schema.Table

public class InMemoryTable
extends Object
implements Schema.Table

In memory table definition.


Constructor Summary
InMemoryTable(org.xcmis.search.model.source.SelectorName name, Iterable<Schema.Column> columns)
           
InMemoryTable(org.xcmis.search.model.source.SelectorName name, Iterable<Schema.Column> columns, Iterable<Schema.Column>... keyColumns)
           
InMemoryTable(org.xcmis.search.model.source.SelectorName name, Map<String,Schema.Column> columnsByName, List<Schema.Column> columns)
           
 
Method Summary
 Schema.Column getColumn(String name)
          Get the information for a column with the supplied name within this table.
 List<Schema.Column> getColumns()
          Get the queryable columns in this table.
 Map<String,Schema.Column> getColumnsByName()
          Get the queryable columns in this table.
 org.xcmis.search.model.source.SelectorName getName()
          Get the name for this table.
 InMemoryTable with(org.xcmis.search.model.source.SelectorName name)
           
 InMemoryTable withColumn(String name, PropertyType type)
           
 InMemoryTable withColumn(String name, PropertyType type, boolean fullTextSearchable, org.xcmis.search.model.constraint.Operator[] availableQueryOperators)
           
 InMemoryTable withColumns(Iterable<Schema.Column> columns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryTable

public InMemoryTable(org.xcmis.search.model.source.SelectorName name,
                     Iterable<Schema.Column> columns)

InMemoryTable

public InMemoryTable(org.xcmis.search.model.source.SelectorName name,
                     Iterable<Schema.Column> columns,
                     Iterable<Schema.Column>... keyColumns)

InMemoryTable

public InMemoryTable(org.xcmis.search.model.source.SelectorName name,
                     Map<String,Schema.Column> columnsByName,
                     List<Schema.Column> columns)
Method Detail

getColumn

public Schema.Column getColumn(String name)
Description copied from interface: Schema.Table
Get the information for a column with the supplied name within this table.

The resulting column definition is immutable.

Specified by:
getColumn in interface Schema.Table
Parameters:
name - the column name; may not be null
Returns:
the column information, or null if there is no such column
See Also:
Schema.Table.getColumn(java.lang.String)

getColumns

public List<Schema.Column> getColumns()
Description copied from interface: Schema.Table
Get the queryable columns in this table.

Specified by:
getColumns in interface Schema.Table
Returns:
the immutable, ordered list of immutable column objects; never null
See Also:
Schema.Table.getColumns()

getColumnsByName

public Map<String,Schema.Column> getColumnsByName()
Description copied from interface: Schema.Table
Get the queryable columns in this table.

Specified by:
getColumnsByName in interface Schema.Table
Returns:
the immutable map of immutable column objects by their name; never null
See Also:
Schema.Table.getColumnsByName()

getName

public org.xcmis.search.model.source.SelectorName getName()
Description copied from interface: Schema.Table
Get the name for this table.

Specified by:
getName in interface Schema.Table
Returns:
the table name; never null
See Also:
Schema.Table.getName()

withColumn

public InMemoryTable withColumn(String name,
                                PropertyType type)

withColumn

public InMemoryTable withColumn(String name,
                                PropertyType type,
                                boolean fullTextSearchable,
                                org.xcmis.search.model.constraint.Operator[] availableQueryOperators)

withColumns

public InMemoryTable withColumns(Iterable<Schema.Column> columns)

with

public InMemoryTable with(org.xcmis.search.model.source.SelectorName name)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.