public class ChukwaRecordDataSource extends Object implements DataSource
Constructor and Description |
---|
ChukwaRecordDataSource() |
Modifier and Type | Method and Description |
---|---|
String |
buildFileName(int directoryType,
String rootFolder,
String dataSource,
int spill,
String day,
String hour,
int rawIndex) |
boolean |
containsRotateFlag(int directoryType,
String rootFolder,
String dataSource,
String workingDay,
String workingHour) |
boolean |
exist(int directoryType,
String rootFolder,
String dataSource,
String workingDay,
String workingHour,
String raw) |
void |
extractRecords(ChukwaDSInternalResult res,
int directoryType,
String rootFolder,
String dataSource,
String day,
String hour,
int rawIndex,
Token token,
List<Record> records,
int maxRows,
long t0,
long t1,
String filter) |
boolean |
isThreadSafe() |
protected boolean |
isValid(ChukwaRecord record,
String filter) |
static void |
main(String[] args) |
void |
readData(ChukwaDSInternalResult res,
Token token,
String fileName,
int maxRows,
long t0,
long t1,
String filter) |
SearchResult |
search(SearchResult result,
String cluster,
String dataSource,
long t0,
long t1,
String filter,
Token token) |
public boolean isThreadSafe()
isThreadSafe
in interface DataSource
public SearchResult search(SearchResult result, String cluster, String dataSource, long t0, long t1, String filter, Token token) throws DataSourceException
search
in interface DataSource
DataSourceException
public void extractRecords(ChukwaDSInternalResult res, int directoryType, String rootFolder, String dataSource, String day, String hour, int rawIndex, Token token, List<Record> records, int maxRows, long t0, long t1, String filter) throws Exception
Exception
public void readData(ChukwaDSInternalResult res, Token token, String fileName, int maxRows, long t0, long t1, String filter) throws Exception
Exception
public boolean containsRotateFlag(int directoryType, String rootFolder, String dataSource, String workingDay, String workingHour) throws Exception
Exception
public boolean exist(int directoryType, String rootFolder, String dataSource, String workingDay, String workingHour, String raw) throws Exception
Exception
protected boolean isValid(ChukwaRecord record, String filter)
public String buildFileName(int directoryType, String rootFolder, String dataSource, int spill, String day, String hour, int rawIndex)
public static void main(String[] args) throws DataSourceException
DataSourceException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.