Documentation ¶
Index ¶
- Constants
- func GetAllFields(records []*execution.Record) []string
- type BatchTablePrinter
- type LiveTablePrinter
- type RecordData
- func (*RecordData) Descriptor() ([]byte, []int)
- func (m *RecordData) GetIds() []*execution.RecordID
- func (m *RecordData) GetIsUndo() bool
- func (m *RecordData) GetRecord() *execution.Record
- func (*RecordData) ProtoMessage()
- func (m *RecordData) Reset()
- func (m *RecordData) String() string
- func (m *RecordData) XXX_DiscardUnknown()
- func (m *RecordData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecordData) XXX_Merge(src proto.Message)
- func (m *RecordData) XXX_Size() int
- func (m *RecordData) XXX_Unmarshal(b []byte) error
- type RecordsLister
- type TableFormatter
- type TableOutput
- func (o *TableOutput) AddRecord(ctx context.Context, tx storage.StateTransaction, inputIndex int, ...) error
- func (o *TableOutput) Close(ctx context.Context, storage storage.Storage) error
- func (o *TableOutput) GetEndOfStream(ctx context.Context, tx storage.StateTransaction) (bool, error)
- func (o *TableOutput) GetErrorMessage(ctx context.Context, tx storage.StateTransaction) (string, error)
- func (o *TableOutput) GetWatermark(ctx context.Context, tx storage.StateTransaction) (time.Time, error)
- func (o *TableOutput) ListRecords(ctx context.Context, tx storage.StateTransaction) ([]*execution.Record, error)
- func (o *TableOutput) MarkEndOfStream(ctx context.Context, tx storage.StateTransaction) error
- func (o *TableOutput) MarkError(ctx context.Context, tx storage.StateTransaction, err error) error
- func (o *TableOutput) Next(ctx context.Context, tx storage.StateTransaction) (*execution.Record, error)
- func (o *TableOutput) ReadyForMore(ctx context.Context, tx storage.StateTransaction) error
- func (o *TableOutput) TriggerKeys(ctx context.Context, tx storage.StateTransaction, batchSize int) (int, error)
- func (o *TableOutput) UpdateWatermark(ctx context.Context, tx storage.StateTransaction, watermark time.Time) error
Constants ¶
View Source
const REFRESH_DELAY = time.Second / 4
Variables ¶
This section is empty.
Functions ¶
func GetAllFields ¶
Types ¶
type BatchTablePrinter ¶
type BatchTablePrinter struct {
// contains filtered or unexported fields
}
func NewWholeTablePrinter ¶
func NewWholeTablePrinter(stateStorage storage.Storage, recordsLister RecordsLister, tableFormatter TableFormatter) *BatchTablePrinter
type LiveTablePrinter ¶
type LiveTablePrinter struct {
// contains filtered or unexported fields
}
func NewLiveTablePrinter ¶
func NewLiveTablePrinter(stateStorage storage.Storage, recordsLister RecordsLister, tableFormatter TableFormatter) *LiveTablePrinter
type RecordData ¶
type RecordData struct { Ids []*execution.RecordID `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` IsUndo bool `protobuf:"varint,2,opt,name=isUndo,proto3" json:"isUndo,omitempty"` Record *execution.Record `protobuf:"bytes,3,opt,name=record,proto3" json:"record,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecordData) Descriptor ¶
func (*RecordData) Descriptor() ([]byte, []int)
func (*RecordData) GetIds ¶
func (m *RecordData) GetIds() []*execution.RecordID
func (*RecordData) GetIsUndo ¶
func (m *RecordData) GetIsUndo() bool
func (*RecordData) GetRecord ¶
func (m *RecordData) GetRecord() *execution.Record
func (*RecordData) ProtoMessage ¶
func (*RecordData) ProtoMessage()
func (*RecordData) Reset ¶
func (m *RecordData) Reset()
func (*RecordData) String ¶
func (m *RecordData) String() string
func (*RecordData) XXX_DiscardUnknown ¶
func (m *RecordData) XXX_DiscardUnknown()
func (*RecordData) XXX_Marshal ¶
func (m *RecordData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecordData) XXX_Merge ¶
func (m *RecordData) XXX_Merge(src proto.Message)
func (*RecordData) XXX_Size ¶
func (m *RecordData) XXX_Size() int
func (*RecordData) XXX_Unmarshal ¶
func (m *RecordData) XXX_Unmarshal(b []byte) error
type RecordsLister ¶
type RecordsLister interface { ListRecords(ctx context.Context, tx storage.StateTransaction) ([]*execution.Record, error) GetWatermark(ctx context.Context, tx storage.StateTransaction) (time.Time, error) GetEndOfStream(ctx context.Context, tx storage.StateTransaction) (bool, error) GetErrorMessage(ctx context.Context, tx storage.StateTransaction) (string, error) }
type TableFormatter ¶
type TableOutput ¶
type TableOutput struct { StreamID *execution.StreamID EventTimeField octosql.VariableName OrderingExpressions []execution.Expression OrderingDirections []execution.OrderDirection Limit *int Offset *int }
func NewTableOutput ¶
func NewTableOutput( streamID *execution.StreamID, eventTimeField octosql.VariableName, orderingExpressions []execution.Expression, orderingDirections []execution.OrderDirection, limit *int, offset *int, ) *TableOutput
func (*TableOutput) AddRecord ¶
func (o *TableOutput) AddRecord(ctx context.Context, tx storage.StateTransaction, inputIndex int, record *execution.Record) error
func (*TableOutput) GetEndOfStream ¶
func (o *TableOutput) GetEndOfStream(ctx context.Context, tx storage.StateTransaction) (bool, error)
func (*TableOutput) GetErrorMessage ¶
func (o *TableOutput) GetErrorMessage(ctx context.Context, tx storage.StateTransaction) (string, error)
func (*TableOutput) GetWatermark ¶
func (o *TableOutput) GetWatermark(ctx context.Context, tx storage.StateTransaction) (time.Time, error)
func (*TableOutput) ListRecords ¶
func (o *TableOutput) ListRecords(ctx context.Context, tx storage.StateTransaction) ([]*execution.Record, error)
func (*TableOutput) MarkEndOfStream ¶
func (o *TableOutput) MarkEndOfStream(ctx context.Context, tx storage.StateTransaction) error
func (*TableOutput) MarkError ¶
func (o *TableOutput) MarkError(ctx context.Context, tx storage.StateTransaction, err error) error
func (*TableOutput) Next ¶
func (o *TableOutput) Next(ctx context.Context, tx storage.StateTransaction) (*execution.Record, error)
func (*TableOutput) ReadyForMore ¶
func (o *TableOutput) ReadyForMore(ctx context.Context, tx storage.StateTransaction) error
func (*TableOutput) TriggerKeys ¶
func (o *TableOutput) TriggerKeys(ctx context.Context, tx storage.StateTransaction, batchSize int) (int, error)
func (*TableOutput) UpdateWatermark ¶
func (o *TableOutput) UpdateWatermark(ctx context.Context, tx storage.StateTransaction, watermark time.Time) error
Click to show internal directories.
Click to hide internal directories.