private void init( HCatClient hcatClient, long eventFrom, int maxEvents, IMetaStoreClient.NotificationFilter filter) throws HCatException { // Simple implementation for now, this will later expand to do DAG evaluation. this.hcatClient = hcatClient; this.filter = filter; this.pos = eventFrom; if (maxEvents < 1){ // 0 or -1 implies fetch everything this.maxEvents = Integer.MAX_VALUE; } else { this.maxEvents = maxEvents; } batchSize = Integer.parseInt( hcatClient.getConfVal(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX.varname,"50")); this.eventCount = 0; this.maxPos = hcatClient.getCurrentNotificationEventId(); }
long baseId = sourceMetastore.getCurrentNotificationEventId(); long currId = sourceMetastore.getCurrentNotificationEventId(); assertTrue("currId[" + currId + "] must be more than 25 greater than baseId[" + baseId + "]", currId > baseId + 25);
private void init( HCatClient hcatClient, long eventFrom, int maxEvents, IMetaStoreClient.NotificationFilter filter) throws HCatException { // Simple implementation for now, this will later expand to do DAG evaluation. this.hcatClient = hcatClient; this.filter = filter; this.pos = eventFrom; if (maxEvents < 1){ // 0 or -1 implies fetch everything this.maxEvents = Integer.MAX_VALUE; } else { this.maxEvents = maxEvents; } batchSize = Integer.parseInt( hcatClient.getConfVal(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX.varname,"50")); this.eventCount = 0; this.maxPos = hcatClient.getCurrentNotificationEventId(); }
private void init( HCatClient hcatClient, long eventFrom, int maxEvents, IMetaStoreClient.NotificationFilter filter) throws HCatException { // Simple implementation for now, this will later expand to do DAG evaluation. this.hcatClient = hcatClient; this.filter = filter; this.pos = eventFrom; if (maxEvents < 1){ // 0 or -1 implies fetch everything this.maxEvents = Integer.MAX_VALUE; } else { this.maxEvents = maxEvents; } batchSize = Integer.parseInt( hcatClient.getConfVal(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX.varname,"50")); this.eventCount = 0; this.maxPos = hcatClient.getCurrentNotificationEventId(); }
private void init( HCatClient hcatClient, long eventFrom, int maxEvents, IMetaStoreClient.NotificationFilter filter) throws HCatException { // Simple implementation for now, this will later expand to do DAG evaluation. this.hcatClient = hcatClient; this.filter = filter; this.pos = eventFrom; if (maxEvents < 1){ // 0 or -1 implies fetch everything this.maxEvents = Integer.MAX_VALUE; } else { this.maxEvents = maxEvents; } batchSize = Integer.parseInt( hcatClient.getConfVal(HiveConf.ConfVars.METASTORE_BATCH_RETRIEVE_MAX.varname,"50")); this.eventCount = 0; this.maxPos = hcatClient.getCurrentNotificationEventId(); }