Uses of Class
com.streambase.sb.Schema
Packages that use 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
Methods in com.streambase.liveview.client that return SchemaModifier and TypeMethodDescriptionSendTupleInfo.getResponseOutputSchema()QueryListenerWrapper.getSchema()Getter for theSchemafor the query.TablePublisher.getSchema()Schema needed to create tuples for the publish method.SendTupleInfo.getTargetInputSchema()Methods in com.streambase.liveview.client with parameters of type SchemaModifier and TypeMethodDescriptionvoidTableAdminManager.createTable(String tableName, String description, Schema schema, String... primaryKeyFields) Convenience form of the previous method, used if there is only a primary key.voidTableAdminManager.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.voidSetter for theSchemafor the query.Constructors in com.streambase.liveview.client with parameters of type SchemaModifierConstructorDescriptionAbstractTable(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
Methods in com.streambase.liveview.client.dynamictables with parameters of type SchemaModifier and TypeMethodDescriptionThis method is used to set the schema for the table being configured. -
Uses of Schema in com.streambase.sb
Fields in com.streambase.sb declared as SchemaModifier and TypeFieldDescriptionstatic final SchemaSchema.EMPTY_SCHEMAAn empty schemastatic SchemaSchemaUtil.EMPTY_SCHEMAAn empty schemastatic final SchemaControlStream.SCHEMAControl stream schemaFields in com.streambase.sb with type parameters of type SchemaModifier and TypeFieldDescriptionstatic final ConcurrentMap<Schema, String> SchemaUtil.NULL_VALUE_EXPR_BY_SCHEMANull value expression cacheMethods in com.streambase.sb that return SchemaModifier and TypeMethodDescriptionstatic SchemaSchemaUtil.addFields(Schema base, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic SchemaSchemaUtil.addFields(Schema base, String newName, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic SchemaSchemaUtil.computeOutputSchema(com.streambase.sb.util.LocatedItem loc, Schema[] schemas, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas, String errorPrefix) Compute output schemastatic SchemaSchemaUtil.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 SchemaSchemaUtil.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 SchemaSchemaUtil.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 SchemaSchemaUtil.createSchema(Element element, ByteOrder ord, SchemaUtil.SchemaProvider schemaProvider, List<StreamBaseException> errors) Create a schema from XMLstatic SchemaSelect the correct result schema for this field mapper.static SchemaSchemaUtil.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()static SchemaSchema.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 SchemaSchemaUtil.getSchema(CompleteDataType cdt) Get schema for complete data typestatic SchemaSchemaUtil.getSchema(Schema.Field f) Get schema for a schema fieldStreamProperties.getSchema()Return the stream's Schemafinal SchemaTuple.getSchema()Return the Schema for this TupleSchemaUtil.SchemaProvider.getSchemaByHash(byte[] hash) request a schema by hashstatic SchemaDeprecated.static SchemaCreate a new schemastatic SchemaSBUtils.newSchema(String name, List<Schema.Field> fields, boolean hasHeader, ByteOrder order) Deprecated.please useSBUtils.newSchema(String, List, ByteOrder)static SchemaSBUtils.newSchema(String name, List<Schema.Field> fields, ByteOrder order) Create a new schemastatic SchemaDeprecated.please useSBUtils.newSchema(Element, ByteOrder)static SchemaCreate a new schemastatic SchemaRemove the fields by name from the schema.static SchemaSchemaUtil.sanitizeFieldNames(Schema origSchema) Sanitize field names so that they are genericMethods in com.streambase.sb that return types with arguments of type SchemaModifier 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 schemasMethods in com.streambase.sb with parameters of type SchemaModifier and TypeMethodDescriptionstatic SchemaSchemaUtil.addFields(Schema base, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic SchemaSchemaUtil.addFields(Schema base, String newName, Schema.Field... additionalFields) Create a new schema augmenting the fields in the base schema with additional fieldsstatic StringBuild functionstatic byte[]SchemaUtil.buildHash(Schema schema, boolean includeFieldNames) Build hash for schemastatic SchemaSchemaUtil.computeOutputSchema(com.streambase.sb.util.LocatedItem loc, Schema[] schemas, Set<SchemaUtil.CoercionOptions> options, com.streambase.sb.internal.CapturedSchemas capturedSchemas, String errorPrefix) Compute output schemastatic voidFor all fields insource, when they are present intarget, descriptions are copied.static Schema.FieldSchema.createFunctionField(String fieldName, Schema argumentSchema, CompleteDataType returnType) Creates a new Field of type FUNCTION, with the given name, argument list and return type.static SchemaSchemaUtil.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 SchemaSchemaUtil.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 SchemaSchemaUtil.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.FieldSchema.createTupleField(String name, Schema schema) Creates a new Field of type TUPLE, with the given name and given schemastatic ElementSchemaUtil.createXmlElement(Schema schema, SchemaUtil.SchemaProvider schemaProvider, EnumSet<SchemaUtil.CopyOptions> options) Create and return the XML for the specified schema.static ElementSchemaUtil.createXmlElement(Schema schema, Document document, SchemaUtil.SchemaProvider schemaProvider) Create and return the XML for the specified schema.static ElementSchemaUtil.createXmlElement(Schema schema, Document document, SchemaUtil.SchemaProvider schemaProvider, EnumSet<SchemaUtil.CopyOptions> options) Create and return the XML for the specified schema.static ElementSchemaUtil.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 SchemaSelect the correct result schema for this field mapper.booleanSchema.equalsNoCapture(Schema scm) Compare schemas without capture fieldsstatic SchemaSchemaUtil.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'sCompleteDataTypewith the given argument schema and return typestatic CompleteDataTypeReturn a tuple complete data type with the specified schema.static intSchemaUtil.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 booleanSchemaUtil.hasCapture(Schema s) Does schema have a capture field?static booleanSchemaUtil.hasMultiCapture(Schema s) Does schema have multiple capture fields?booleanSchema.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.booleanSchema.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 SchemaRemove the fields by name from the schema.voidReadOnlyTupleRep.reset(Schema newSchema, byte[] data, int offset, com.streambase.sb.util.ByteArrayUtils bau) reset this tuple with new data...voidRun the schema visitorbooleanSchema.sameFieldsAs(Schema other) Returns true if this schema has the same field types and names in the same order as another Schema.static booleanNote: if you call this, and are thinking of throwing an exception when things don't match...static booleanNote: if you call this, and are thinking of throwing an exception when things don't match...booleanSchema.sameFieldTypes(Schema other) Returns true if this schema has the same field types in the same order as another Schemastatic SchemaSchemaUtil.sanitizeFieldNames(Schema origSchema) Sanitize field names so that they are genericvoidSchemaUtil.SchemaTraversal.visitSchema(Schema schema, String fieldPath) This method will be called for each and every schemaMethod parameters in com.streambase.sb with type arguments of type SchemaModifier and TypeMethodDescriptionstatic SchemaSchemaUtil.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 SchemaSchemaUtil.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.Constructors in com.streambase.sb with parameters of type SchemaModifierConstructorDescriptionprotectedCompiledTuple(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.protectedReadOnlyTuple(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.protectedTupleRep(Schema schema, com.streambase.sb.util.ByteArrayUtils bau, TupleRep.TupleLayout tupleLayout) Constructor with tuple repConstructor -
Uses of Schema in com.streambase.sb.client
Methods in com.streambase.sb.client that return SchemaModifier and TypeMethodDescriptionDequeueResult.getSchema()Returns the schema for the tuples dequeued, may return nullStreamBaseClient.getSchemaByHash(byte[] hash) Return the Schema object for the given hash valueXmlRpcAdmin.getSchemaByHash(long timeoutMS, byte[] hash) 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
Methods in com.streambase.sb.feedsim that return Schema -
Uses of Schema in com.streambase.sb.monitor
Fields in com.streambase.sb.monitor declared as SchemaModifier and TypeFieldDescriptionstatic final SchemaStreamBaseMonitor.STAT_SCHEMAThe stats schema.static final SchemaStreamBaseMonitor.STAT_SCHEMA_V3The v3 stats schema.Methods in com.streambase.sb.monitor that return Schema -
Uses of Schema in com.streambase.sb.operator
Methods in com.streambase.sb.operator that return SchemaModifier and TypeMethodDescriptionOperator.getDynamicVariablesSchema()Retrieves a Schema containing information about every dynamic variable available to the module this operator is contained in.final SchemaOperator.getInputSchema(int port) Returns the schema of an input port.Operator.getNamedSchema(String name) final SchemaOperator.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 SchemaOperator.getRuntimeInputSchema(int port) Returns the schema of an input port at runtime.final SchemaOperator.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 SchemaOperator.getTypecheckInputSchema(int port) Returns the schema of an input port that was set at application typecheck time.final SchemaOperator.getTypecheckOutputSchema(int outputPort) Return the output schema as set by typecheck.final SchemaOperator.setOutputSchema(int port, Schema outputSchema) Sets the output schema for the given output port (port #'s are zero based).Methods in com.streambase.sb.operator with parameters of type SchemaModifier 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 SchemaOperator.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
Methods in com.streambase.sb.operator.parameter that return SchemaModifier and TypeMethodDescriptionSchema[]StudioAssistSchemaFieldPicker.getSchemasForFieldPicker(String propertyName, Schema[] inputSchemas) Assists Studio in presenting a schema field picker to the user, forString[]property types withUIHintsthat have setUIHints.setAssociateFieldPicker(boolean)totrue.Methods in com.streambase.sb.operator.parameter with parameters of type SchemaModifier and TypeMethodDescriptionSchema[]StudioAssistSchemaFieldPicker.getSchemasForFieldPicker(String propertyName, Schema[] inputSchemas) Assists Studio in presenting a schema field picker to the user, forString[]property types withUIHintsthat have setUIHints.setAssociateFieldPicker(boolean)totrue. -
Uses of Schema in com.streambase.sb.unittest
Methods in com.streambase.sb.unittest that return SchemaMethods in com.streambase.sb.unittest with parameters of type SchemaModifier and TypeMethodDescriptionabstract TupleAbstractTupleMaker.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 aTuples from an input objectAbstractTupleMaker.createTuples(Schema schema, Collection<T> ts) AbstractTupleMaker.createTuples(Schema schema, T... ts) TupleMaker.createTuples(Schema schema, Collection<T> t) create multipleTuples from input objectsTupleMaker.createTuples(Schema schema, T... t) create multipleTuples from input objects
SBUtils.newSchema(String, ByteOrder)