[prev in list] [next in list] [prev in thread] [next in thread]
List: hadoop-dev
Subject: Remote Seek
From: "Marcus Herou" <marcus.herou () tailsweep ! com>
Date: 2007-12-31 13:50:39
Message-ID: 7e536b1f0712310550r1e8d2633u8d3ee06835711ac () mail ! gmail ! com
[Download RAW message or body]
Hi.
I've started to implement a caching system which uses the Map interface as
"Facade". One of the implementations is using HDFS as backend FileSystem.
To be able to manage btree files remotely I need the ability to open an
outputstream with an offset and write to it like you write to a
RandomAccessFile.
What I would like to add to the FileSystem class is something like this:
*
FSDataOutputStream
create<http://www.netlikon.de/docs/javadoc-hadoop-0.1/org/apache/hadoop/fs/FileSystem.html#create%28java.io.File,%20boolean,%20int%29>
*(File <http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html> f,
boolean overwrite, int bufferSize, int offset)
Does it seem reasonable ? When browsing the source code I notice that the
underlying data is using the RandomAccessFile so it seems doable at least
for local filesystems and the distributed one.
Kindly
//Marcus Herou
--
Marcus Herou Solution Architect and Java developer Tailsweep AB
+46702561312
marcus.herou@tailsweep.com
http://www.tailsweep.com/
http://blogg.tailsweep.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic