Uses of Class
com.streambase.sb.TupleException
Package
Description
Provides classes and interfaces to add custom table providers for LiveView.
Provides classes and interfaces fundamental to the Streaming Java API.
Provides classes and interfaces used to communicate with a Streaming server.
Provides classes and interfaces to monitor the behavior of a running Streaming server.
Provides classes and interfaces to add custom operators to Streaming applications.
-
Uses of TupleException in com.streambase.liveview.server.table.plugin
Modifier and TypeMethodDescriptionvoid
TableProviderManager.deleteTable
(com.streambase.liveview.server.table.CatalogedTable catalogedTable) void
TableProviderManager.dropTables
(List<String> tables) void
TableProviderManager.startTables
(List<String> tables) -
Uses of TupleException in com.streambase.sb
Modifier and TypeClassDescriptionclass
An exception that is thrown when a field value is requested as a primitive (e.g., Tuple.getBoolean(), Tuple.getTimestamp()), but it is null.Modifier and TypeMethodDescriptionstatic boolean
TupleUtil.allFieldsNull
(Tuple t) are all the fields in this tuple nullvoid
Schema.Field.checkType
(CompleteDataType dataType) Check to make sure that the given type is the same as the type of this Fieldvoid
Deprecated.protected void
Tuple.checkType
(Schema.Field resolvedField, DataType dataType) Check typeprotected int
ReadOnlyTupleRep.checkTypeAndNonNull
(Schema.Field resolvedField, DataType dataType) override checkTypeAndNonNullprotected int
Tuple.checkTypeAndNonNull
(Schema.Field resolvedField, DataType dataType) check the type and make sure it is non nullCapture all the extra fields in 'in' into their correct capture fields.(package private) static void
DataTypeCopier.copyField
(Tuple sourceTuple, Schema.Field sourceField, Tuple destTuple, Schema.Field destField, com.streambase.sb.DataTypeCopier fieldCopier) Copy the field from the source tuple to the destination tuplevoid
Tuple.copyField
(Schema.Field sourceField, Tuple destTuple, Schema.Field destField) Copy the field from this tuple to the destination tupleprotected static List<?>
DataTypeCopier.copyList
(com.streambase.sb.DataTypeCopier fieldCopier, CompleteDataType destType, List<?> sourceList) a common method to do the list coping(package private) abstract List<?>
DataTypeCopier.copyList
(List<?> sourceList) Copy the given list(package private) void
ListCopier.copyList
(Tuple sourceTuple, Schema.Field sourceField, Tuple destTuple, Schema.Field destField) Copy list(package private) List<?>
ListCopier.copyList
(List<?> sourceList) (package private) List<?>
protected void
copy the source tuple to this tuplevoid
Copy the fields from the sourceTuple to the destTuple.(package private) static com.streambase.sb.DataTypeCopier
DataTypeCopier.createCopier
(CompleteDataType sourceType, CompleteDataType destType, EnumSet<TupleCopier.Options> options) Create a DataTypeCopierSchema.createTuple
(String... fieldValues) Create a Tuple with this schema from the supplied collection of stringsSchema.createTuple
(String[] fieldValues, int offset, int length) Create a Tuple with this schema from the supplied collection of stringsSchema.createTuple
(String[] fieldValues, int offset, int length, String nullString) Create a Tuple with this schema from the supplied collection of stringsSchema.createTuple
(List<String> fieldValues, int offset, int length) Create a Tuple with this schema from the supplied collection of stringsSchema.createTuple
(List<String> fieldValues, int offset, int length, String nullString) Create a Tuple with this schema from the supplied collection of stringsExpand all the capture fields in 'in'static Object
TupleUtil.generateRandomValue
(Random random, CompleteDataType type, int maxCount, int flags) Build a random value appropriate to the complete data typefinal Tuple
Tuple.getAllocatedTuple
(int fieldIndex) Return a reference (not a copy) to the specified nested tuple field.Tuple.getAllocatedTuple
(Schema.Field field) Return a reference (not a copy) to the specified nested tuple field.final Tuple
Tuple.getAllocatedTuple
(String fieldPathName) Return a reference (not a copy) to the specified nested tuple field.final ByteArrayView
Tuple.getBlobBuffer
(int fieldIndex) Return a ByteArrayView for a given blob field.Tuple.getBlobBuffer
(Schema.Field field) Return a ByteArrayView for a given blob field.final ByteArrayView
Tuple.getBlobBuffer
(String fieldPathName) Return a ByteArrayView for a given blob field.protected ByteArrayView
ReadOnlyCompositeTuple.getBlobBufferImpl
(Schema.Field field) protected ByteArrayView
ReadOnlyTupleByIndexWrapper.getBlobBufferImpl
(Schema.Field field) ReadOnlyTupleRep.getBlobBufferImpl
(Schema.Field field) protected ByteArrayView
ReadWriteTupleWrapper.getBlobBufferImpl
(Schema.Field field) TupleRep.getBlobBufferImpl
(Schema.Field field) final boolean
Tuple.getBoolean
(int fieldIndex) Return the value of the boolean field at a specified field index.boolean
Tuple.getBoolean
(Schema.Field field) Return the value of a specified boolean field.final boolean
Tuple.getBoolean
(String fieldPathName) Return the value of a named boolean field.protected byte
ReadOnlyCompositeTuple.getBooleanAsByteImpl
(Schema.Field field) protected byte
ReadOnlyTupleByIndexWrapper.getBooleanAsByteImpl
(Schema.Field field) byte
ReadOnlyTupleRep.getBooleanAsByteImpl
(Schema.Field field) protected byte
ReadWriteTupleWrapper.getBooleanAsByteImpl
(Schema.Field field) byte
TupleRep.getBooleanAsByteImpl
(Schema.Field field) protected boolean
ReadOnlyCompositeTuple.getBooleanImpl
(Schema.Field field) protected boolean
ReadOnlyTupleByIndexWrapper.getBooleanImpl
(Schema.Field field) boolean
ReadOnlyTupleRep.getBooleanImpl
(Schema.Field field) protected boolean
ReadWriteTupleWrapper.getBooleanImpl
(Schema.Field field) boolean
TupleRep.getBooleanImpl
(Schema.Field field) final Tuple
Tuple.getCapture
(int fieldIndex) Return the value of the named capture field.final Tuple
Tuple.getCapture
(Schema.Field field) Return the value of the named capture field.final Tuple
Tuple.getCapture
(String fieldPathName) Return the value of the named capture field.protected Tuple
ReadOnlyCompositeTuple.getCaptureImpl
(Schema.Field field) protected Tuple
ReadOnlyTupleByIndexWrapper.getCaptureImpl
(Schema.Field field) ReadOnlyTupleRep.getCaptureImpl
(Schema.Field field) protected Tuple
ReadWriteTupleWrapper.getCaptureImpl
(Schema.Field field) protected abstract Tuple
Tuple.getCaptureImpl
(Schema.Field field) Get capture fieldprotected Tuple
TupleRep.getCaptureImpl
(Schema.Field field) final double
Tuple.getDouble
(int fieldIndex) Return the value of the double field at a specified field index.double
Tuple.getDouble
(Schema.Field field) Return the value of a specified double field.final double
Return the value of a named double field.protected double
ReadOnlyCompositeTuple.getDoubleImpl
(Schema.Field field) protected double
ReadOnlyTupleByIndexWrapper.getDoubleImpl
(Schema.Field field) double
ReadOnlyTupleRep.getDoubleImpl
(Schema.Field field) protected double
ReadWriteTupleWrapper.getDoubleImpl
(Schema.Field field) double
TupleRep.getDoubleImpl
(Schema.Field field) Return a Field object with the given field pathname in or under this schema.final Object
Tuple.getField
(int fieldIndex) Return the value of the field at a specified field index.final Object
Return the value of a named field.int
TupleUtil.RepMethods.getFieldLength
(Tuple tuple, Schema.Field field) Get field lengthfinal Function
Tuple.getFunction
(int fieldIndex) Return the value of the function field at a specified field index.final Function
Tuple.getFunction
(Schema.Field field) Return the value of the given function field.final Function
Tuple.getFunction
(String fieldName) Return the value of the named function field.protected Function
ReadOnlyCompositeTuple.getFunctionImpl
(Schema.Field field) protected Function
ReadOnlyTupleByIndexWrapper.getFunctionImpl
(Schema.Field field) protected Function
ReadOnlyTupleRep.getFunctionImpl
(Schema.Field field) protected Function
ReadWriteTupleWrapper.getFunctionImpl
(Schema.Field field) protected Function
TupleRep.getFunctionImpl
(Schema.Field field) final int
Tuple.getInt
(int fieldIndex) Return the value of the int field at a specified field index.int
Tuple.getInt
(Schema.Field field) Return the value of a specified int field.final int
Return the value of a named int field.protected int
ReadOnlyCompositeTuple.getIntImpl
(Schema.Field field) protected int
ReadOnlyTupleByIndexWrapper.getIntImpl
(Schema.Field field) int
ReadOnlyTupleRep.getIntImpl
(Schema.Field field) protected int
ReadWriteTupleWrapper.getIntImpl
(Schema.Field field) int
TupleRep.getIntImpl
(Schema.Field field) final List<?>
Tuple.getList
(int fieldIndex) Return the value of the list field at a specified field index.List<?>
Tuple.getList
(Schema.Field field) Return the value of a specified list field.final List<?>
Return the value of a named list field.protected List<?>
ReadOnlyCompositeTuple.getListImpl
(Schema.Field field) protected List<?>
ReadOnlyTupleByIndexWrapper.getListImpl
(Schema.Field field) List<?>
ReadOnlyTupleRep.getListImpl
(Schema.Field field) protected List<?>
ReadWriteTupleWrapper.getListImpl
(Schema.Field field) List<?>
TupleRep.getListImpl
(Schema.Field field) final long
Tuple.getLong
(int fieldIndex) Return the value of the long field at a specified field index.long
Tuple.getLong
(Schema.Field field) Return the value of a specified long field.final long
Return the value of a named long field.protected long
ReadOnlyCompositeTuple.getLongImpl
(Schema.Field field) protected long
ReadOnlyTupleByIndexWrapper.getLongImpl
(Schema.Field field) long
ReadOnlyTupleRep.getLongImpl
(Schema.Field field) protected long
ReadWriteTupleWrapper.getLongImpl
(Schema.Field field) long
TupleRep.getLongImpl
(Schema.Field field) Schema.Field.getNestedField
(String fieldPathName) Return a field that identifies a field in a nested tuple field.Schema.Field.getNestedFields()
Return an array of fields, each of which identifies a field in a nested tuple field.protected Tuple
ReadOnlyCompositeTuple.getReadOnlyTuple
(Schema.Field field, int flags) protected abstract Tuple
ReadOnlyTuple.getReadOnlyTuple
(Schema.Field f, int flags) The method that ReadOnly tuples are supposed to implement to get a nested Tuple so that we can consolidate nested tuple logic here for.protected Tuple
ReadOnlyTupleByIndexWrapper.getReadOnlyTuple
(Schema.Field field, int flags) protected Tuple
ReadOnlyTupleRep.getReadOnlyTuple
(Schema.Field field, int flags) final String
Tuple.getString
(int fieldIndex) Return the value of the named string field.Tuple.getString
(Schema.Field field) Return the value of a specified string field.final String
Return the value of the named string field.protected String
ReadOnlyCompositeTuple.getStringImpl
(Schema.Field field) protected String
ReadOnlyTupleByIndexWrapper.getStringImpl
(Schema.Field field) ReadOnlyTupleRep.getStringImpl
(Schema.Field field) protected String
ReadWriteTupleWrapper.getStringImpl
(Schema.Field field) TupleRep.getStringImpl
(Schema.Field field) final Timestamp
Tuple.getTimestamp
(int fieldIndex) Return the value of the timestamp field at a specified field index.Tuple.getTimestamp
(Schema.Field field) Return the value of a specified timestamp field.final Timestamp
Tuple.getTimestamp
(String fieldPathName) Return the value of a named timestamp field.protected long
ReadOnlyCompositeTuple.getTimestampAsLongImpl
(Schema.Field field) protected long
ReadOnlyTupleByIndexWrapper.getTimestampAsLongImpl
(Schema.Field field) long
ReadOnlyTupleRep.getTimestampAsLongImpl
(Schema.Field field) protected long
ReadWriteTupleWrapper.getTimestampAsLongImpl
(Schema.Field field) long
TupleRep.getTimestampAsLongImpl
(Schema.Field field) protected Timestamp
ReadOnlyCompositeTuple.getTimestampImpl
(Schema.Field field) protected Timestamp
ReadOnlyTupleByIndexWrapper.getTimestampImpl
(Schema.Field field) ReadOnlyTupleRep.getTimestampImpl
(Schema.Field field) protected Timestamp
ReadWriteTupleWrapper.getTimestampImpl
(Schema.Field field) TupleRep.getTimestampImpl
(Schema.Field field) final Tuple
Tuple.getTuple
(int fieldIndex) Return a reference (not a copy) to the specified nested tuple field.Tuple.getTuple
(Schema.Field field) Return a reference (not a copy) to the specified nested tuple field.final Tuple
Return a reference (not a copy) to the specified nested tuple field.int
ReadOnlyCompositeTuple.getTupleId()
return the tupleid of the 0th tuple in the listint
ReadOnlyTupleByIndexWrapper.getTupleId()
int
ReadOnlyTupleRep.getTupleId()
int
ReadWriteTupleWrapper.getTupleId()
protected final Tuple
ReadOnlyTuple.getTupleImpl
(Schema.Field field, int flags) Get the tuple for the given field.protected Tuple
ReadWriteTupleWrapper.getTupleImpl
(Schema.Field field, int flags) TupleRep.getTupleImpl
(Schema.Field field, int flags) final boolean
Tuple.isNull
(int fieldIndex) Determines whether a field in the tuple is null.final boolean
Determines whether a field in the tuple is null.static Tuple
ClusterNotificationTupleFields.newTuple
(int clusterEventType, String param0, String param1, String param2) Return a new ClusterNotification tuple.static Tuple
ControlStream.newTuple
(com.streambase.sb.ControlStream.Subsystems subsystem, int id, String param0, String param1, String param2) Create a new tuple with the schema of the control stream and set its fields with the supplied values.com.streambase.sb.ReadOnlyCompositeTuple
ReadOnlyCompositeTuple.reset
(Tuple... newTuples) Reset the tuple with a set of newTuples.(package private) abstract void
TupleUtil.RepMethods.serializeField
(com.streambase.sb.TupleRep tuple, Schema.Field field, com.streambase.sb.util.ByteOrderedDataOutput out) Serialize field(package private) abstract void
TupleUtil.RepMethods.serializeValue
(CompleteDataType valueType, Object value, com.streambase.sb.util.ByteOrderedDataOutput out) Serialize valuefinal void
Tuple.setBlobBuffer
(int fieldIndex, ByteArrayView value) Set the blob field at a specified field index to a copy of a specified blob.void
Tuple.setBlobBuffer
(Schema.Field field, ByteArrayView value) Set a specified blob field to a copy of a specified blob.final void
Tuple.setBlobBuffer
(String fieldPathName, ByteArrayView value) Set a named blob field to a copy of a specified blob.protected void
ReadOnlyTuple.setBlobBufferImpl
(Schema.Field field, ByteArrayView value) protected void
ReadWriteTupleWrapper.setBlobBufferImpl
(Schema.Field field, ByteArrayView value) void
TupleRep.setBlobBufferImpl
(Schema.Field field, ByteArrayView blob) final void
Tuple.setBoolean
(int fieldIndex, boolean value) Set the boolean field at a specified field index to a specified value.void
Tuple.setBoolean
(Schema.Field field, boolean value) Set a named boolean field to a specified value.final void
Tuple.setBoolean
(String fieldPathName, boolean value) Set a named boolean field to a specified value.protected void
ReadOnlyTuple.setBooleanImpl
(Schema.Field field, boolean value) protected void
ReadWriteTupleWrapper.setBooleanImpl
(Schema.Field field, boolean value) void
TupleRep.setBooleanImpl
(Schema.Field field, boolean value) final void
Tuple.setCapture
(int field, Tuple value) Set a specified capture field to a copy of a specified tuple.final void
Tuple.setCapture
(Schema.Field field, Tuple value) Set a specified capture field to a copy of a specified tuple.final void
Tuple.setCapture
(String field, Tuple value) Set a specified capture field to a copy of a specified tuple.protected void
ReadOnlyTuple.setCaptureImpl
(Schema.Field field, Tuple value, boolean makeCopy) protected void
ReadWriteTupleWrapper.setCaptureImpl
(Schema.Field field, Tuple value, boolean makeCopy) void
TupleRep.setCaptureImpl
(Schema.Field field, Tuple value, boolean makeCopy) final void
Tuple.setDouble
(int fieldIndex, double value) Set the double field at a specified field index to a specified value.void
Tuple.setDouble
(Schema.Field field, double value) Set a named double field to a specified value.final void
Set a named double field to a specified value.protected void
ReadOnlyTuple.setDoubleImpl
(Schema.Field field, double value) protected void
ReadWriteTupleWrapper.setDoubleImpl
(Schema.Field field, double value) void
TupleRep.setDoubleImpl
(Schema.Field field, double value) final void
Set the field at a specified field index to a specified boxed value.final void
Tuple.setField
(Schema.Field field, Object value) Set a specified field to a specified boxed value.final void
Tuple.setField
(Schema.Field field, Object value, com.streambase.sb.util.CSV.FormatInfo format) Set the field at a specified field name to a specified boxed value.final void
Set the named field to a specified value.final void
Set the field at a specified field name to a specified boxed value.static void
TupleUtil.setField
(Tuple tuple, Schema.Field field, CharSequence value, com.streambase.sb.util.CSV.FormatInfo csvFormat) Set a specified field to the values the supplied value string.static void
TupleUtil.setField
(Tuple tuple, Schema.Field field, CharSequence value, String nullString) Deprecated.useTupleUtil.setField(Tuple, Field, CharSequence, CSV.FormatInfo)
void
Takes a map of field names and values as Objects and sets the corresponding tuple field with the supplied value.final void
Tuple.setFunction
(int field, Function value) Set a specified function field to the givenFunction
final void
Tuple.setFunction
(Schema.Field field, Function value) Set a specified function field to the givenFunction
final void
Tuple.setFunction
(String field, Function value) Set a specified function field to the givenFunction
protected void
ReadOnlyTuple.setFunctionImpl
(Schema.Field pathlessField, Function value) protected void
ReadWriteTupleWrapper.setFunctionImpl
(Schema.Field pathlessField, Function value) protected void
TupleRep.setFunctionImpl
(Schema.Field field, Function value) final void
Tuple.setInt
(int fieldIndex, int value) Set the int field at a specified field index to a specified value.void
Tuple.setInt
(Schema.Field field, int value) Set a specified int field to a specified value.final void
Set the named int field to a specified value.protected void
ReadOnlyTuple.setIntImpl
(Schema.Field field, int value) protected void
ReadWriteTupleWrapper.setIntImpl
(Schema.Field field, int value) void
TupleRep.setIntImpl
(Schema.Field field, int value) final void
Set the list field at a specified field index to a copy of the specified value.void
Tuple.setList
(Schema.Field field, List<?> value) Set a specified list field to a copy of a specified value.final void
Set a named list field to a copy of a specified value.static List<?>
TupleUtil.setListElement
(String name, CompleteDataType elementType, List<?> list, int index, Object value) Return a new list that's a copy of the supplied list except with the element at the specified index replaced with the specified value, potentially applying the conversions as specified inTuple.setField(Field, Object, com.streambase.sb.util.CSV.FormatInfo)
to the value.protected void
ReadOnlyTuple.setListImpl
(Schema.Field field, List<?> value) protected void
ReadWriteTupleWrapper.setListImpl
(Schema.Field field, List<?> value) void
TupleRep.setListImpl
(Schema.Field field, List<?> value) final void
Tuple.setLong
(int fieldIndex, long value) Set the long field at a specified field index to a specified value.void
Tuple.setLong
(Schema.Field field, long value) Set a specified long field to a specified value.final void
Set a named long field to a specified value.protected void
ReadOnlyTuple.setLongImpl
(Schema.Field field, long value) protected void
ReadWriteTupleWrapper.setLongImpl
(Schema.Field field, long value) void
TupleRep.setLongImpl
(Schema.Field field, long value) final void
Set a named field to null.final void
Tuple.setString
(int fieldIndex, CharSequence value) Set the string field at a specified field index to a specified value.final void
Tuple.setString
(Schema.Field field, CharSequence value) Set a specified string field to a specified value.final void
Tuple.setString
(String fieldPathName, CharSequence value) Set a named field to a specified value.protected void
ReadOnlyTuple.setStringImpl
(Schema.Field field, CharSequence value) protected void
ReadWriteTupleWrapper.setStringImpl
(Schema.Field field, CharSequence value) void
TupleRep.setStringImpl
(Schema.Field field, CharSequence value) final void
Tuple.setTimestamp
(int fieldIndex, Timestamp value) Set the timestamp field at a specified field index to a specified value.void
Tuple.setTimestamp
(Schema.Field field, Timestamp value) Set a named timestamp field to a specified value.final void
Tuple.setTimestamp
(String fieldPathName, Timestamp value) Set a named timestamp field to a specified value.protected void
ReadOnlyTuple.setTimestampImpl
(Schema.Field field, long value) protected void
ReadOnlyTuple.setTimestampImpl
(Schema.Field field, Timestamp value) protected void
ReadWriteTupleWrapper.setTimestampImpl
(Schema.Field field, long value) protected void
ReadWriteTupleWrapper.setTimestampImpl
(Schema.Field field, Timestamp value) void
TupleRep.setTimestampImpl
(Schema.Field field, long value) void
TupleRep.setTimestampImpl
(Schema.Field field, Timestamp value) final void
Set a specified nested tuple field to that of the specified tuple.void
Tuple.setTuple
(Schema.Field field, Tuple value) Set a specified nested tuple field to that of the specified tuple NOTE: A copy of the the tuple may be made to convert the given tuple to the appropriate internal representation.final void
Set a named nested tuple field to a specified tuple.void
ReadOnlyTuple.setTupleId
(int id) void
ReadWriteTupleWrapper.setTupleId
(int id) protected void
ReadOnlyTuple.setTupleImpl
(Schema.Field field, Tuple value) protected void
ReadWriteTupleWrapper.setTupleImpl
(Schema.Field field, Tuple value) void
TupleRep.setTupleImpl
(Schema.Field field, Tuple value) static String[][]
TupleUtil.splitTupleString
(String source) Deprecated.there is no replacement for this methodstatic String
TupleUtil.tupleEquals
(Tuple t1, Tuple t2, EnumSet<TupleCopier.Options> options) Compare 2 tuples with the given optionsvoid
ReadOnlyCompositeTuple.verify()
void
ReadOnlyTupleByIndexWrapper.verify()
void
ReadOnlyTupleRep.verify()
void
ReadWriteTupleWrapper.verify()
void
TupleRep.verify()
static Object
ReadOnlyTupleByIndexWrapper.wrapObject
(CompleteDataType cdt, Object o) Wrap objectModifierConstructorDescriptionprotected
ControlStreamTupleFields
(Tuple tuple) Constructor(package private)
ListCopier
(CompleteDataType sourceType, CompleteDataType destType, EnumSet<TupleCopier.Options> options) ConstructorCreate a Tuple with the given compositeSchema.Create a Tuple with the given compositeSchema.Create a Tuple WrapperTupleCopier
(Schema sourceSchema, Schema destSchema, boolean strict) Create the TupleCopier.TupleCopier
(Schema sourceSchema, Schema destSchema, EnumSet<TupleCopier.Options> options) Create the TupleCopier. -
Uses of TupleException in com.streambase.sb.client
Modifier and TypeMethodDescriptionprotected void
StreamBaseClient.SerializedTupleBuffer.addToBuffer
(Tuple tuple, int id) Possibly add a tuple if there is roomprotected abstract void
StreamBaseClient.TupleBuffer.addToBuffer
(Tuple tuple, int id) Add to buffer -
Uses of TupleException in com.streambase.sb.monitor
Modifier and TypeMethodDescription(package private) void
StatTuplev3.fillTuple
(Tuple t) Fill tuple(package private) void
StatTuplev3.fromTuple
(Tuple t) Populate from tuplestatic com.streambase.sb.monitor.StatTuplev3
StatsUtil.toStatTuple
(Tuple t) com.streambase.sb.monitor.StatTuplev3
Retrieve data from tuple and returns a StatBuffercom.streambase.sb.monitor.StatTuplev3
Un-marshal a tuple to a StatTuple -
Uses of TupleException in com.streambase.sb.operator
Modifier and TypeMethodDescriptionOperator.getDynamicVariables()
Retrieves a read-only tuple describing the current value of all dynamic variables in the module this operator is contained in.
Schema.Field.checkType(CompleteDataType)