Skip to content

Commit 6221f4f

Browse files
committed
1.2.1.0
1 parent de706bf commit 6221f4f

File tree

5 files changed

+110
-8
lines changed

5 files changed

+110
-8
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Installation
2121
============= ================= ================= ===========================================================
2222
ES version Plugin Release date Command
2323
------------- ----------------- ----------------- -----------------------------------------------------------
24+
1.2.1 1.2.1.0
2425
1.2.0 1.2.0.0 May 23, 2014 ./bin/plugin -install knapsack -url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-knapsack/1.2.0.0/elasticsearch-knapsack-1.2.0.0-plugin.zip
2526
1.2.0 1.2.0.0 (+S3) May 23, 2014 ./bin/plugin -install knapsack -url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-knapsack/1.2.0.0/elasticsearch-knapsack-1.2.0.0-plugin-s3.zip
2627
1.1.0 1.1.0.0 May 25, 2014 ./bin/plugin -install knapsack -url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-knapsack/1.1.0.0/elasticsearch-knapsack-1.1.0.0-plugin.zip

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>org.xbib.elasticsearch.plugin</groupId>
99
<artifactId>elasticsearch-knapsack</artifactId>
10-
<version>1.2.0.0</version>
10+
<version>1.2.1.0</version>
1111

1212
<packaging>jar</packaging>
1313

@@ -57,9 +57,9 @@
5757
<properties>
5858
<github.global.server>github</github.global.server>
5959
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
60-
<elasticsearch.version>1.2.0</elasticsearch.version>
61-
<org.xbib.version>1.0.0.Beta3</org.xbib.version>
62-
<org.xbib.elasticsearch.support.version>1.2.0.0</org.xbib.elasticsearch.support.version>
60+
<elasticsearch.version>1.2.1</elasticsearch.version>
61+
<org.xbib.elasticsearch.support.version>1.2.1.0</org.xbib.elasticsearch.support.version>
62+
<java.version>1.7</java.version>
6363
</properties>
6464

6565
<dependencies>
@@ -135,8 +135,8 @@
135135
<artifactId>maven-compiler-plugin</artifactId>
136136
<version>3.1</version>
137137
<configuration>
138-
<source>1.6</source>
139-
<target>1.6</target>
138+
<source>${java.version}</source>
139+
<target>${java.version}</target>
140140
<encoding>UTF-8</encoding>
141141
<optimize>true</optimize>
142142
<showDeprecation>true</showDeprecation>
@@ -147,7 +147,7 @@
147147
<plugin>
148148
<groupId>org.apache.maven.plugins</groupId>
149149
<artifactId>maven-surefire-plugin</artifactId>
150-
<version>2.15</version>
150+
<version>2.17</version>
151151
<configuration>
152152
<includes>
153153
<include>**/*Tests.java</include>
@@ -276,7 +276,7 @@
276276
</plugin>
277277
<plugin>
278278
<artifactId>maven-surefire-report-plugin</artifactId>
279-
<version>2.15</version>
279+
<version>2.17</version>
280280
</plugin>
281281
</plugins>
282282
</reporting>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
package org.xbib.io.archivers.esbulk;
3+
4+
import org.xbib.io.archivers.ArchiveEntry;
5+
6+
import java.util.Date;
7+
8+
public class EsBulkArchiveEntry implements ArchiveEntry {
9+
10+
private String name;
11+
12+
private long size;
13+
14+
private Date lastmodified;
15+
16+
public EsBulkArchiveEntry() {
17+
}
18+
19+
@Override
20+
public ArchiveEntry setName(String name) {
21+
this.name = name;
22+
return this;
23+
}
24+
25+
@Override
26+
public String getName() {
27+
return name;
28+
}
29+
30+
@Override
31+
public ArchiveEntry setEntrySize(long size) {
32+
this.size = size;
33+
return this;
34+
}
35+
36+
@Override
37+
public long getEntrySize() {
38+
return size;
39+
}
40+
41+
@Override
42+
public ArchiveEntry setLastModified(Date lastmodified) {
43+
this.lastmodified = lastmodified;
44+
return this;
45+
}
46+
47+
@Override
48+
public Date getLastModified() {
49+
return lastmodified;
50+
}
51+
52+
@Override
53+
public boolean isDirectory() {
54+
return false;
55+
}
56+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
package org.xbib.io.archivers.esbulk;
3+
4+
import org.xbib.io.Connection;
5+
6+
import java.io.IOException;
7+
import java.net.URI;
8+
9+
public class EsBulkConnection implements Connection<EsBulkSession> {
10+
11+
private URI uri;
12+
13+
protected EsBulkConnection() {
14+
}
15+
16+
@Override
17+
public EsBulkConnection setURI(URI uri) {
18+
this.uri = uri;
19+
return this;
20+
}
21+
22+
@Override
23+
public URI getURI() {
24+
return uri;
25+
}
26+
27+
@Override
28+
public EsBulkSession createSession() throws IOException {
29+
EsBulkSession session = new EsBulkSession();
30+
session.setURI(uri);
31+
return session;
32+
}
33+
34+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
package org.xbib.io.archivers.esbulk;
3+
4+
import org.xbib.io.archivers.ArchiveSession;
5+
6+
public class EsBulkSession extends ArchiveSession {
7+
8+
protected String getSuffix() {
9+
return "esbulk";
10+
}
11+
}

0 commit comments

Comments
 (0)