delete an unused file.

pull/17/head
John Shahid 2013-10-25 11:31:56 -04:00
parent 3efada882f
commit a63d8ce5ac
1 changed files with 0 additions and 68 deletions

View File

@ -1,68 +0,0 @@
package interfaces
import (
"protocol"
"time"
)
type WriteRequest struct {
Timeseries []*protocol.Series
}
type Operation int
const (
EqualOperation Operation = iota
NotEqualOperation
GreaterThanOperation
GreaterThanOrEqualOperation
LessThanOperation
LessThanOrEqualOperation
)
type Condition interface {
IsCondition()
}
type CombineOperation int
// definition of combining operators with order of precedence
const (
NotOperation CombineOperation = iota // First has to be nil
AndOperation
OrOperation
)
type CombiningCondition struct {
First *Condition
CombineOp CombineOperation
Second *Condition
}
type ComparisonCondition struct {
FieldName string
Op Operation
Value interface{}
}
// TODO: applying functions and joining time series
type ReadRequest struct {
Timeseries string
IsRegex bool // is the timeseries name a regex?
StartTime time.Time
EndTime time.Time
IsContinuous bool
Conditions []*Condition
}
type StorageEngineProcessingI interface {
WritePoints(request *WriteRequest) error
ReadPoints(request *ReadRequest, yield func(pts []*protocol.Point) error) error
}
type StorageEngineConsensusI interface {
// TODO: figure out the requirements of this interface. Probably the following
// 1. Transfer part(s) of the ring to other node(s)
// 2. Give up ownership of part(s) of the ring
// 3. Take ownership of part(s) of the ring
}