|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.content.InMemorySchema.Builder
public static class InMemorySchema.Builder
A builder of immutable Schema objects.
| Constructor Summary | |
|---|---|
protected |
InMemorySchema.Builder()
|
| Method Summary | |
|---|---|
InMemorySchema.Builder |
addColumn(String tableName,
String columnName,
PropertyType type)
Add a column with the supplied name and type to the named table. |
InMemorySchema.Builder |
addColumn(String tableName,
String columnName,
PropertyType type,
boolean fullTextSearchable,
org.xcmis.search.model.constraint.Operator[] availableQueryOperators)
Add a column with the supplied name and type to the named table. |
InMemorySchema.Builder |
addTable(String name,
String... columnNames)
Add a table with the supplied name and column names. |
InMemorySchema.Builder |
addTable(String name,
String[] columnNames,
PropertyType[] types)
Add a table with the supplied name and column names and types. |
Schema |
build()
Build the Schema instance, using the current state of the
builder. |
InMemorySchema.Builder |
makeSearchable(String tableName,
String columnName)
Make sure the column on the named table is searchable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected InMemorySchema.Builder()
| Method Detail |
|---|
public InMemorySchema.Builder addTable(String name,
String... columnNames)
name - the name of the new tablecolumnNames - the names of the columns.
public InMemorySchema.Builder addTable(String name,
String[] columnNames,
PropertyType[] types)
name - the name of the new tablecolumnNames - the names of the columnstypes - the types for the columns
public InMemorySchema.Builder addColumn(String tableName,
String columnName,
PropertyType type)
tableName - the name of the new tablecolumnName - the names of the columntype - the type for the column
public InMemorySchema.Builder addColumn(String tableName,
String columnName,
PropertyType type,
boolean fullTextSearchable,
org.xcmis.search.model.constraint.Operator[] availableQueryOperators)
tableName - the name of the new tablecolumnName - the names of the columntype - the type for the columnfullTextSearchable - true if the column should be full-text searchable, or false
if not
public InMemorySchema.Builder makeSearchable(String tableName,
String columnName)
tableName - the name of the new tablecolumnName - the names of the column
public Schema build()
Schema instance, using the current state of the
builder. This method creates a snapshot of the tables (with their
columns) as they exist at the moment this method is called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||