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 DataSourcepublic SearchResult search(SearchResult result, String cluster, String dataSource, long t0, long t1, String filter, Token token) throws DataSourceException
search in interface DataSourceDataSourceExceptionpublic 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
Exceptionpublic void readData(ChukwaDSInternalResult res, Token token, String fileName, int maxRows, long t0, long t1, String filter) throws Exception
Exceptionpublic boolean containsRotateFlag(int directoryType,
String rootFolder,
String dataSource,
String workingDay,
String workingHour)
throws Exception
Exceptionpublic boolean exist(int directoryType,
String rootFolder,
String dataSource,
String workingDay,
String workingHour,
String raw)
throws Exception
Exceptionprotected 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
DataSourceExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.