Uses of Class
com.streambase.sb.Schema
Package
Description
Provides classes and interfaces fundamental to the LiveView Java API.
Provides classes to configure table options.
Provides classes and interfaces fundamental to the Streaming Java API.
Provides classes and interfaces used to communicate with a Streaming server.
Provides abstract classes to extend feedsim input sources.
Provides classes and interfaces to monitor the behavior of a running Streaming server.
Provides classes and interfaces to add custom operators to Streaming applications.
Provides classes and interfaces to specify parameters for custom operators.
Provides classes and interfaces used to author Streaming Unit tests.
-
Uses of Schema in com.streambase.liveview.client
Modifier and TypeMethodDescriptionSendTupleInfo.getResponseOutputSchema()
QueryListenerWrapper.getSchema()
Getter for theSchema
for the query.TablePublisher.getSchema()
Schema needed to create tuples for the publish method.SendTupleInfo.getTargetInputSchema()
Modifier and TypeMethodDescriptionvoid
TableAdminManager.createTable
(String tableName, String description, Schema schema, String... primaryKeyFields) Convenience form of the previous method, used if there is only a primary key.void
TableAdminManager.createTable
(String tableName, String description, Schema schema, List<List<String>> indices) Create a table on the server without any LVConf which represents it.LiveViewConnection.sendTupleAction
(StreamBaseURI sbUri, String targetInputStreamName, Tuple tuple, String responseOutputStreamName, Schema expectedResponseSchema, long timeout, TimeUnit unit) Sends a tuple to an existing StreamBase application.void
Setter for theSchema
for the query.ModifierConstructorDescriptionAbstractTable
(Schema schema, String keyFieldNamesCSV) AbstractTable
(Schema schema, List<String> keyFieldNames) SendTupleInfo
(StreamBaseURI sbUri, String inputStreamName, String outputStreamName, Schema inputSchema, Schema outputSchema) -
Uses of Schema in com.streambase.liveview.client.dynamictables
Modifier and TypeMethodDescriptionThis method is used to set the schema for the table being configured. -
Uses of Schema in com.streambase.sb
Modifier and TypeFieldDescriptionstatic final Schema
Schema.EMPTY_SCHEMA
An empty schemastatic Schema
SchemaUtil.EMPTY_SCHEMA
An empty schemastatic final Schema
ControlStream.SCHEMA
Control stream schemaModifier and TypeFieldDescriptionstatic final ConcurrentMap<Schema,
String> SchemaUtil.NULL_VALUE_EXPR_BY_SCHEMA
Null value expression cacheModifier and TypeMethodDescriptionstatic Schema
SchemaUtil.addFields
(Schema base, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic Schema
SchemaUtil.addFields
(Schema base, String newName, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsOutputSchemaBuilder.buildResultSchema()
Build result schemastatic Schema
SchemaUtil.computeOutputSchema
(com.streambase.sb.util.LocatedItem loc, Schema[] schemas, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas, String errorPrefix) Compute output schemastatic Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc) Create a new schema with the given parent schemas and the given fields defined here.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc, List<StreamBaseException> storeExceptions) Create a new schema with the given parent schemas and the given fields defined here.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<String> parentSchemaNames, SchemaUtil.SchemaProvider provider, com.streambase.sb.util.Location loc, List<StreamBaseException> storeExceptions) Create a new schema with the given parent schema names and the given fields defined here.static Schema
SchemaUtil.createSchema
(Element element, ByteOrder ord, SchemaUtil.SchemaProvider schemaProvider, List<StreamBaseException> errors) Create a schema from XMLstatic Schema
Select the correct result schema for this field mapper.static Schema
SchemaUtil.expandCaptureFields
(com.streambase.sb.util.LocatedItem loc, Schema schema, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas) Take a schema which might have capture field, and expand the field.SchemaMismatchException.getActualSchema()
BasicFunction.getArgumentSchema()
CompleteDataType.FunctionType.getArgumentSchema()
CompleteDataType.getArgumentSchema()
For function types, return the argument schema.Function.getArgumentSchema()
Returns Schema for the input argument types of the function.TupleCaptureTransformer.getCollapsedSchema()
(package private) Schema
Schema.Field.getContainingSchema()
Returns the schema of which this field is a part.static Schema
Schema.getErrorSchema()
TupleCaptureTransformer.getExpandedSchema()
SchemaMismatchException.getExpectedSchema()
Schema.getLocallyDefinedFields()
SchemaUtil.SchemaProvider.getNamedSchema
(String name) A request to provide a Schema for the given name.CompleteDataType.getSchema()
For tuple types, return the tuple's schema.CompleteDataType.TupleType.getSchema()
Schema.Field.getSchema()
Return the schema for this field.static Schema
SchemaUtil.getSchema
(CompleteDataType cdt) Get schema for complete data typestatic Schema
SchemaUtil.getSchema
(Schema.Field f) Get schema for a schema fieldStreamProperties.getSchema()
Return the stream's Schemafinal Schema
Tuple.getSchema()
Return the Schema for this TupleSchemaUtil.SchemaProvider.getSchemaByHash
(byte[] hash) request a schema by hashstatic Schema
Deprecated.static Schema
Create a new schemastatic Schema
SBUtils.newSchema
(String name, List<Schema.Field> fields, boolean hasHeader, ByteOrder order) Deprecated.please useSBUtils.newSchema(String, List, ByteOrder)
static Schema
SBUtils.newSchema
(String name, List<Schema.Field> fields, ByteOrder order) Create a new schemastatic Schema
Deprecated.please useSBUtils.newSchema(Element, ByteOrder)
static Schema
Create a new schemastatic Schema
Remove the fields by name from the schema.static Schema
SchemaUtil.sanitizeFieldNames
(Schema origSchema) Sanitize field names so that they are genericModifier and TypeMethodDescriptionSchema.getParentSchemas()
SchemaUtil.getSchemasFromNames
(List<String> names, SchemaUtil.SchemaProvider schemaProvider) Given a schema provider, get all the schemas for the given schema namesSchemaUtil.newSchemaMap()
create a Map<> with the approbate comparator for schemasModifier and TypeMethodDescriptionstatic Schema
SchemaUtil.addFields
(Schema base, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic Schema
SchemaUtil.addFields
(Schema base, String newName, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic String
Build functionstatic byte[]
SchemaUtil.buildHash
(Schema schema, boolean includeFieldNames) Build hash for schemastatic Schema
SchemaUtil.computeOutputSchema
(com.streambase.sb.util.LocatedItem loc, Schema[] schemas, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas, String errorPrefix) Compute output schemastatic void
For all fields insource
, when they are present intarget
, descriptions are copied.static Schema.Field
Schema.createFunctionField
(String fieldName, Schema argumentSchema, CompleteDataType returnType) Creates a new Field of type FUNCTION, with the given name, argument list and return type.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc) Create a new schema with the given parent schemas and the given fields defined here.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc, List<StreamBaseException> storeExceptions) Create a new schema with the given parent schemas and the given fields defined here.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<String> parentSchemaNames, SchemaUtil.SchemaProvider provider, com.streambase.sb.util.Location loc, List<StreamBaseException> storeExceptions) Create a new schema with the given parent schema names and the given fields defined here.static Schema.Field
Schema.createTupleField
(String name, Schema schema) Creates a new Field of type TUPLE, with the given name and given schemastatic Element
SchemaUtil.createXmlElement
(Schema schema, SchemaUtil.SchemaProvider schemaProvider, EnumSet<SchemaUtil.CopyOptions> options) Create and return the XML for the specified schema.static Element
SchemaUtil.createXmlElement
(Schema schema, Document document, SchemaUtil.SchemaProvider schemaProvider) Create and return the XML for the specified schema.static Element
SchemaUtil.createXmlElement
(Schema schema, Document document, SchemaUtil.SchemaProvider schemaProvider, EnumSet<SchemaUtil.CopyOptions> options) Create and return the XML for the specified schema.static Element
SchemaUtil.createXmlElement
(Schema schema, Node parent, SchemaUtil.SchemaProvider schemaProvider, EnumSet<SchemaUtil.CopyOptions> options) Create and return the XML for the specified schema and add the XML as a child of the specified parent.static Schema
Select the correct result schema for this field mapper.boolean
Schema.equalsNoCapture
(Schema scm) Compare schemas without capture fieldsstatic Schema
SchemaUtil.expandCaptureFields
(com.streambase.sb.util.LocatedItem loc, Schema schema, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas) Take a schema which might have capture field, and expand the field.SchemaUtil.findCaptures
(Schema s) Find all capture fields in schemaCompleteDataType.forFunction
(Schema argumentSchema, CompleteDataType returnType) Return a function'sCompleteDataType
with the given argument schema and return typestatic CompleteDataType
Return a tuple complete data type with the specified schema.static int
SchemaUtil.getApproximateSize
(Schema schema) Calculates an estimate (does not account for variable-sized types) for the size of a tuple with this schema, including the header and null mask.static byte[]
SchemaUtil.getFieldTypeHash
(Schema schema) Get field type hashSchemaUtil.getParentSchemaNames
(Schema schema) Get the names of the parent schemas for the given schemastatic boolean
SchemaUtil.hasCapture
(Schema s) Does schema have a capture field?static boolean
SchemaUtil.hasMultiCapture
(Schema s) Does schema have multiple capture fields?void
OutputSchemaBuilder.includeSchema
(int schemaIndex, Schema schema) Include schemaboolean
Schema.isSubsetOf
(Schema schema) Returns true if this schema's fields are a subset of the supplied schema's fields Does not recursively test nested schemas for subsetness.boolean
Schema.isSupersetOf
(Schema schema) Returns true if this schema's fields are a superset of the supplied schema's fields Does not recursively test nested schemas for subsetness.static Schema
Remove the fields by name from the schema.void
ReadOnlyTupleRep.reset
(Schema newSchema, byte[] data, int offset, com.streambase.sb.util.ByteArrayUtils bau) reset this tuple with new data...void
Run the schema visitorboolean
Schema.sameFieldsAs
(Schema other) Returns true if this schema has the same field types and names in the same order as another Schema.static boolean
Note: if you call this, and are thinking of throwing an exception when things don't match...static boolean
Note: if you call this, and are thinking of throwing an exception when things don't match...boolean
Schema.sameFieldTypes
(Schema other) Returns true if this schema has the same field types in the same order as another Schemastatic Schema
SchemaUtil.sanitizeFieldNames
(Schema origSchema) Sanitize field names so that they are genericvoid
SchemaUtil.SchemaTraversal.visitSchema
(Schema schema, String fieldPath) This method will be called for each and every schemaModifier and TypeMethodDescriptionstatic Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc) Create a new schema with the given parent schemas and the given fields defined here.static Schema
SchemaUtil.createSchema
(String name, Schema definedHere, List<Schema> parentSchemas, com.streambase.sb.util.Location loc, List<StreamBaseException> storeExceptions) Create a new schema with the given parent schemas and the given fields defined here.ModifierConstructorDescriptionprotected
CompiledTuple
(Schema schema) ConstructorDeprecated.UseField(String, CompleteDataType)
instead with new Schema(name, CompleteDataType.forTuple(s)), orcreateTupleField(String, Schema)
FunctionType
(Schema arguments, CompleteDataType returnType) ConstructorCreate a Tuple with the given compositeSchema.Create a Tuple with the given compositeSchema.protected
ReadOnlyTuple
(Schema schema) ConstrutorCreate a Tuple WrapperReadOnlyTupleRep
(Schema schema, byte[] data, int offset, com.streambase.sb.util.ByteArrayUtils bau) Create a ReadOnlyTupleRep from a serialized tupleCreate a ReadOnlyTupleRep from a serialized tupleConstruct a Schema from another schemaConstruct a Schema with a new name from another schemaSchemaMismatchException
(com.streambase.sb.util.LocatedItem loc, String msg, Schema exp, Schema act) TupleCopier
(Schema sourceSchema, Schema destSchema, boolean strict) Create the TupleCopier.TupleCopier
(Schema sourceSchema, Schema destSchema, EnumSet<TupleCopier.Options> options) Create the TupleCopier.(package private)
TupleLayout
(Schema schema) Constructorprotected
TupleRep
(Schema schema, com.streambase.sb.util.ByteArrayUtils bau, TupleRep.TupleLayout tupleLayout) Constructor with tuple repConstructor -
Uses of Schema in com.streambase.sb.client
Modifier and TypeMethodDescriptionDequeueResult.getSchema()
Returns the schema for the tuples dequeued, may return nullAdmin.getSchemaByHash
(long timeoutMS, byte[] hash) Return the Schema object for the given hash valueHAAdmin.getSchemaByHash
(long timeoutMS, byte[] hash) StreamBaseClient.getSchemaByHash
(byte[] hash) Return the Schema object for the given hash valueXmlRpcAdmin.getSchemaByHash
(long timeoutMS, byte[] hash) Admin.getSchemaByName
(long timeoutMS, String schemaName) Return the Schema object for the given nameHAAdmin.getSchemaByName
(long timeoutMS, String schemaName) StreamBaseClient.getSchemaByName
(String name) Return the Schema object for the given name.XmlRpcAdmin.getSchemaByName
(long timeoutMS, String schemaName) StreamBaseClient.getSchemaForStream
(String streamName) Return the schema of a stream. -
Uses of Schema in com.streambase.sb.feedsim
-
Uses of Schema in com.streambase.sb.monitor
Modifier and TypeFieldDescriptionstatic final Schema
StreamBaseMonitor.STAT_SCHEMA
The stats schema.static final Schema
StreamBaseMonitor.STAT_SCHEMA_V3
The v3 stats schema. -
Uses of Schema in com.streambase.sb.operator
Modifier and TypeMethodDescriptionOperator.getDynamicVariablesSchema()
Retrieves a Schema containing information about every dynamic variable available to the module this operator is contained in.final Schema
Operator.getInputSchema
(int port) Returns the schema of an input port.Operator.getNamedSchema
(String name) final Schema
Operator.getOutputSchema
(int outputPort) Return the output schema for the given output port (zero-based).Schema[]
Operator.getProposedInputSchemas
(String mainName) Override to provide schemas that Studio will offer to users to import into their projects.Schema[]
Operator.getProposedOutputSchemas
(String mainName) Override to provide schemas that Studio will offer to users to import into their projects.final Schema
Operator.getRuntimeInputSchema
(int port) Returns the schema of an input port at runtime.final Schema
Operator.getRuntimeOutputSchema
(int outputPort) Return the output schema that should actually use toOperator.sendOutput(int, Tuple)
orOperator.sendOutputAsync(int, Tuple)
.TableAccessor.getSchema()
The schema for rows in this table.Operator.getSchemaForCapture
(String captureName, int depth) Finds the schema for the given capture name in the context that this operator is running under.final Schema
Operator.getTypecheckInputSchema
(int port) Returns the schema of an input port that was set at application typecheck time.final Schema
Operator.getTypecheckOutputSchema
(int outputPort) Return the output schema as set by typecheck.final Schema
Operator.setOutputSchema
(int port, Schema outputSchema) Sets the output schema for the given output port (port #'s are zero based).Modifier and TypeMethodDescriptionOperator.getTupleCaptureTransformer
(Schema s) Get a TupleCaptureTransformer capable of translating tuples with the given schema to the equivalent schema with all the capture fields expanded out, and translating expanded tuples back into tuples with the given schemaPrepare an index-accessing query.final Schema
Operator.setOutputSchema
(int port, Schema outputSchema) Sets the output schema for the given output port (port #'s are zero based). -
Uses of Schema in com.streambase.sb.operator.parameter
Modifier and TypeMethodDescriptionSchema[]
StudioAssistSchemaFieldPicker.getSchemasForFieldPicker
(String propertyName, Schema[] inputSchemas) Assists Studio in presenting a schema field picker to the user, forString[]
property types withUIHints
that have setUIHints.setAssociateFieldPicker(boolean)
totrue
.Modifier and TypeMethodDescriptionSchema[]
StudioAssistSchemaFieldPicker.getSchemasForFieldPicker
(String propertyName, Schema[] inputSchemas) Assists Studio in presenting a schema field picker to the user, forString[]
property types withUIHints
that have setUIHints.setAssociateFieldPicker(boolean)
totrue
. -
Uses of Schema in com.streambase.sb.unittest
Modifier and TypeMethodDescriptionabstract Tuple
AbstractTupleMaker.createTuple
(Schema schema, T t) CSVTupleMaker.createTuple
(Schema schema, String str) JSONSingleQuotesTupleMaker.createTuple
(Schema schema, String str) JSONTupleMaker.createTuple
(Schema schema, String str) ObjectArrayTupleMaker.createTuple
(Schema schema, Object[] objs) TupleMaker.createTuple
(Schema schema, T t) create aTuple
s from an input objectAbstractTupleMaker.createTuples
(Schema schema, Collection<T> ts) AbstractTupleMaker.createTuples
(Schema schema, T... ts) TupleMaker.createTuples
(Schema schema, Collection<T> t) create multipleTuple
s from input objectsTupleMaker.createTuples
(Schema schema, T... t) create multipleTuple
s from input objects
SBUtils.newSchema(String, ByteOrder)